How to delay iframe loading

tbkdkc

Junior Member
Joined
Oct 21, 2008
Messages
154
Reaction score
54
Hey quick question, how can you delay the loading of iframe till after the page is done loading?
 
I know someone knows how to do this, and im sure its pretty easy I just need to code to add
 
interested in this as well... thanks ^ for requesting it... lol
 
If you make it the last lines of code on the page then the page does load first.

- woodstuck
 
I'm looking for more of time delay thing, in seconds or something... not sure about the op....
 
I am sure there is a way you can do this with Javascript but don't quote me on that. Still learning coding beyond HTML/CSS.
 
Yea more of like a delay, maybe like 5 seconds after page loads.. something liket hat
 
iFrame another page on your server with a javascript delay. Make sure to also add the positioning to the page with the java code on it to position the iFrame if you require positioning. Also you can add a "Loading..." if you wanted to.
 
Code:
Scroll to the bottom of this page for a potential solution:

http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_23986112.html
 
You can just create a meta refresh page to your framed page and control the time it takes to load in the refresh.

For example in your page you can have:
Code:
<iframe src=http://yourdomain.com/refresh.php />

Then create a page called refresh.php that is referenced above or call it whatever you want and then have this in there:
Code:
<html>
<head>
<meta http-equiv="refresh" content="10;url=http://Myframedpage.com">
</head>
</html>

Just change the 10 to the amount of seconds your want the frame to delay loading.

Note: This will work without javascript enabled in the browser.

Hope that helps.
 
Back
Top