piersk
08-06-2003, 03:42 AM
Is there any way in which I can use Javascript to check whether the opener window (i.e. the one that called window.open() ) has finished loading?
|
Click to See Complete Forum and Search --> : Opener has loaded piersk 08-06-2003, 03:42 AM Is there any way in which I can use Javascript to check whether the opener window (i.e. the one that called window.open() ) has finished loading? AdamGundry 08-06-2003, 04:06 AM I think you should be able to set a variable in the opener's onload event handler, then check for the existence of the variable in the popup window. Adam Gollum 08-06-2003, 04:09 AM in your opener's HTML page add the following to the body tag... <body onload="window.bIHaveLoaded = true;"> ... then in your popup, you can use window.opener.bIHaveLoaded to check if it's loaded or not. alternatively the IE Document supports a property called readyState that can be one of "uninitialized", "loading", "interactive", "complete" webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |