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()"> Link to comment https://forums.phpfreaks.com/topic/189167-short-script-to-ie-friendly/ Share on other sites More sharing options...
Adam Posted January 20, 2010 Share Posted January 20, 2010 Which version? Tested in IE6 okay. Link to comment https://forums.phpfreaks.com/topic/189167-short-script-to-ie-friendly/#findComment-998747 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 Link to comment https://forums.phpfreaks.com/topic/189167-short-script-to-ie-friendly/#findComment-998779 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... Link to comment https://forums.phpfreaks.com/topic/189167-short-script-to-ie-friendly/#findComment-998868 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 Link to comment https://forums.phpfreaks.com/topic/189167-short-script-to-ie-friendly/#findComment-998932 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.