function SetWinHeight(obj)
{
var win= obj; >
win.height = win.contentDocument.body.offsetHeight;
else if(win.Document && win.Document.body.scrollHeight)
win.height = win.Document.body.scrollHeight;
}
}
}
Finally, when adding iframe, you cannot lose the onload attribute. Of course, the id must also match win in the function
Program code
Copy code