Jump to content

short script to IE friendly


ram4nd

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.