how to resize the <iframe> dynamically?
843840Jun 12 2008 — edited Jun 18 2008hi all
i want to resize the <iframe> dynamically.
i tried like this --
<script language="JavaScript">
function calcHeight()
{
//find the height of the internal page
var the_height=document.getElementById('the_iframe').contentWindow.document.body.scrollHeight;
//alert("Height-"+the_height);
//change the height of the iframe
document.getElementById('the_iframe').height=the_height;
}
</script>
<body onload="calcHeight();">
<iframe onload="calHeight();" src="abc.html"></iframe>
but it show access denied error on IE.
how to solve this error?