This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Check if Child Window Fully Loaded Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Check if Child Window Fully Loaded" Watch "Check if Child Window Fully Loaded" New topic
Author

Check if Child Window Fully Loaded

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
I want to create a child window by using window.open(...) and do some manipulation on the new window AFTER it is fully loaded. Is there a way so that the parent window can tell if the child window have finished loading? I have no control on the page loaded in the child window so I cant rely on the child window document setting some flag to true in its onload handler.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Well some browsers support readyState

create a setTimeout that loops until


is true

For other browsers that do not support it, you can loop until you detect an object or JS variable on the page.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Check if Child Window Fully Loaded
 
Similar Threads
Child window reload problem
how to tell if a popup has fully loaded
how to refer to new window using javascript
Communication between Child and Parent Window
need to differentiate between the window closing an window refreshing