hi all,
i´m using the code attached to dymically adapt my iframe containing site to its content regarding height. so forum height (inside iframe) changes => iframe height also changes....
it works fine with ie and worked fine with firefox 4/5. now i installed firefox 6 and it doesnt work anymore??? js is enabled......
console states: "document.all is undefined"
any idea? can anyone adapt the code?? please help!!
<head>
<script language="JavaScript">
function resize() {
var iframe = document.all.FORUM;
iframe.height=document.frames("FORUM").document.body.scrollHeight;
}
</script>
</head>
<body onload=resize();>
<iframe src="mybb/" name="FORUM" scrolling="no" width="100%" height=100% frameborder="0" onload="this.height=this.contentDocument.height"></iframe>
</body>