jQuery in Action, 3rd edition
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 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

Joined: Nov 08, 2001
Posts: 15385
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Check if Child Window Fully Loaded
It's not a secret anymore!