Forum Moderators: open
im new here. so hello everyone!
i have a problem. and was wondering if anyone can help me. i have this awesome script which is so imple but works fantastic. It tells an iframe to load in an htm page but changes to whatever hieght the htm page is. its great for people who do not want to have a scroll bar in the iframe and just want the browser scroll bar.
the problem is that the script works in exploere only and not firefox. i read in here a big explanation of the difference between firefox and explorer but its way over my head. if i give you the code would any of you be able to figure out what needs to be changed in the script so it deos work?
here is the script located right after the header:
<script language="JavaScript">
<!--
function calcHeight()
{
//find the height of the internal page
var the_height=
document.getElementById('content').contentWindow.
document.body.scrollHeight;
//change the height of the iframe
document.getElementById('content').height=
the_height;
}
//-->
</script>
then in the iframe the script is (the only part below that communicates with the script above is onLoad="calcHeight();":
<td height="194" colspan="4" valign="top" bgcolor="#FFFFFF"><iframe name="content" style="border:0px" width=923 onLoad="calcHeight();" src="home.htm" scrolling="NO" frameborder="0" height="0"> </iframe></td>
thank you so much for helping me out. its very very much appreciated.