aspose file tools
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Check if Child Window Fully Loaded" Watch "Check if Child Window Fully Loaded" New topic

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 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

Joined: Nov 08, 2001
Posts: 15376
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.

I agree. Here's the link:
subject: Check if Child Window Fully Loaded