How can I set the height for iFrame content when content of the iframe is an asp.net site with master page ?
Does anyone know any jQuery plug in ?
Update This works fine in IE but fails in chrome and firefox
function resizeFrame(f) { f.style.height = f.contentWindow.document.body.scrollHeight + "px"; }
Calling it on body onload()
body onload="resizeFrame(document.getElementById('MainIFrame'))"
iframe code
<iframe id="MainIFrame" class="autoHeight" runat="server" marginwidth="0" style="margin: auto; "
frameborder="0" width="100%" scrolling="no" >
</iframe>