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