ram4nd Posted January 20, 2010 Share Posted January 20, 2010 My script doesn't work on IE I have tried some things to fix it, but now I am out of ideas. <script language="JavaScript"> <!-- function resize_iframe() { var iframe=document.getElementById("iframe"); var height=window.innerWidth; if (document.body.clientHeight) height=document.body.clientHeight; iframe.style.height=parseInt(height-iframe.offsetTop)+"px"; } window.onresize=resize_iframe; //--> </script> <iframe id="iframe" src="{url}" onload="resize_iframe()"> Quote Link to comment Share on other sites More sharing options...
Adam Posted January 20, 2010 Share Posted January 20, 2010 Which version? Tested in IE6 okay. Quote Link to comment Share on other sites More sharing options...
ram4nd Posted January 20, 2010 Author Share Posted January 20, 2010 I have linux, but http://ipinfo.info/netrenderer/index.php tels me opposite with every ie Quote Link to comment Share on other sites More sharing options...
Adam Posted January 20, 2010 Share Posted January 20, 2010 Tested in IE7 now I'm home, works as well. Personally I wouldn't worry about it... Quote Link to comment Share on other sites More sharing options...
ram4nd Posted January 20, 2010 Author Share Posted January 20, 2010 ok thank you, i guess those browser shot pages are not that reliable Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.