<script>
Window.onload = function () {
var iframeb = document.getElementById ("Iframepage");
var iframepage = document.createelement (' iframe ');
Iframeheight ("Load");
Document.body.appendChild (Iframepage);
Iframeb.appendchild (Iframepage);
}
Ifram highly Adaptive
function Iframeheight () {
var bodyheight = 460;
if (/msie/.test (Navigator.userAgent.toLowerCase ()) | | |/firefox/.test (navigator.userAgent.toLowerCase ())) {
Bodyheight = window.frames["Iframepage"].document.body.scrollheight;
}
else {
Bodyheight = document.getElementById ("Iframepage"). ContentWindow.document.documentElement.scrollHeight;
}
document.getElementById ("Iframepage"). Height = bodyheight;
}
</script>
Html
<div id= "RL" >
<iframe id= "Iframepage" name= "Iframepage" frameborder=0 scrolling=no onload= "Iframeheight ()" width= "280" src=\ ' #\ ' "/cart/cart_calendar_iframe?oneday=". (Empty ($oneDay)? ": $oneDay))? > "></iframe>
</div>
The onload of the IFRAME sometimes does not work