By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,700 Members | 1,451 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,700 IT Pros & Developers. It's quick & easy.

Detecting if an iframe's parent has finished loading

P: n/a
Hi,

I have some javascript that is within an iframe's src, however I do
not want to execute it until the iframe's parent has finished loading.

I have tried parent.window.onload = function() but that does not seem
to wait, and then throws a "not implemnted error"

If any one can help it is greatly appreciated.,

Thanks,
Tim
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a


Timmy wrote:
I have some javascript that is within an iframe's src, however I do
not want to execute it until the iframe's parent has finished loading.

I have tried parent.window.onload = function() but that does not seem
to wait, and then throws a "not implemnted error"


In the parent use
var loaded = false;

<body onload="loaded = true;">
then check
if (parent.loaded)
from the iframe

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.