Colin
Colin

Reputation: 2824

Javascript to Redirect Parent Window and Close Popup...in that order

One of my pages launches a popup with javascript. Inside the popup there is a link that uses window.opener.location to redirect the parent window. I want the popup to wait until the parent window is completely loaded, and then close itself.

The link is to an external page, so using the parent window to close the child window is not an option. Using setTimeout to guess when the page has loaded is also not an option. Using frames within the parent window is also not an option because currently frames can bust out and I have no way of stopping them.

Thanks

Upvotes: 0

Views: 6051

Answers (1)

Josh
Josh

Reputation: 11070

This won't be possible, as when you redirect the parent window to a different domain, you lose the ability to access it's properties and know when it's been loaded.

Upvotes: 2

Related Questions