Does this help:
<html>
<head>
<script language="JavaScript">
function iFrameHeight() {
//alert(window.frames.ifra
if(document.getElementById
theFrame = document.getElementById('i
h = theFrame.contentDocument.b
w = theFrame.contentDocument.b
theFrame.style.height = h;
theFrame.style.width = w;
}else if(document.all) {
h = window.frames.iframename.d
w = window.frames.iframename.d
document.all.iframename.st
document.all.iframename.st
}
}
</script>
</head>
<body onLoad="iFrameHeight();">
<IFRAME onLoad="iFrameHeight()" SRC="iframe.html" NAME="iframename" ID="iframename"></IFRAME>
</body>
</html>
Main Topics
Browse All Topics





by: devicPosted on 2004-03-04 at 11:19:34ID: 10516722
try this: ;" SRC="iframe.html" NAME="iframename" ID="iframename"></IFRAME>
==============
<script language="JavaScript">
function iFrameHeight(obj)
{
alert
(
"height=" + obj.scrollHeight +"\n"+
"width=" + obj.scrollWidth
)
}
</script>
</head>
<body >
<IFRAME onLoad="iFrameHeight(this)