I wrote this simple function to load an iframe after the entire HTML loads. It works perfectly in Chrome, but not IE. In IE, the iframe does not load.
Also, is the a better way to append the iframe?Code:<body id="body" onload="load()"> ... function load(){ f = document.createElement('iframe'); f.setAttribute('id','frame'); f.setAttribute('src','<?php echo $link; ?>'); f.setAttribute('frameborder','0'); document.getElementById('body').appendChild(f); }


Reply With Quote
Bookmarks