Skip to content Skip to sidebar Skip to footer

Disable Iframes Automatic Onload

i have one html with multiple pages in it. i have some pages that i open them in iframes. when i open the html page (it contains all pages in it) it starts loading all ifra

Solution 1:

If you set the src attribute of your iframes with javascript you can control at which moment they should load.

Solution 2:

Tom is correct,

put this at the bottom of your html, but before the tag

<script>document.getElementById("myIframe").src = "http://www.idan1.com";
</script>

you will have to add the id tag to your iframe and remove the src

              <iframe id="myIframe" style="border: 0; position:absolute; top:43px; left:0; right:0; bottom:0; width:320px; height:480px; background: white"></iframe>            

You could even get fancy, and do an set onload.

Post a Comment for "Disable Iframes Automatic Onload"