<iframe id="iframeHome" name="iframeHome" src="/Page/NewHome/GongZuoTai.html" scrolling="yes" onload="iFrameHeight()"
frameborder="0" style="padding: 0px; width:980px;float:left; margin:0; padding:0;"></iframe>
function iFrameHeight() {
alert("123");
var ifm = document.getElementById("iframeHome");
var subWeb = document.frames ? document.frames["iframeHome"].document : ifm.contentDocument;
if (ifm != null && subWeb != null) {
ifm.height = subWeb.body.scrollHeight;
ifm.width = subWeb.body.scrollWidth;
}
}
function iFrameHeight() { alert("123"); var ifm = document.getElementById("iframeHome"); var subWeb = document.frames ? document.frames["iframeHome"].document : ifm.contentDocument; if (ifm != null && subWeb != null) { ifm.height = subWeb.body.scrollHeight; ifm.width = subWeb.body.scrollWidth; }}