JavaScript popup windows onLoad event
If I popup a window by doing
var newwin = window.open(Url, Name, Properties);
Is there a way to know on the opener page when the popup finishes loading? I have a page that is basicly a copy of another domains page with all the links going to the other domain. (don't ask why, it just makes it look like part of the site I am building). The problem is that none of the links work unless the browser has a cookie from that domain. I thought about opening a page from their site in a hidden iframe so that you wouldn't know you were loading it, but IE 6 defaults to not allowing cookies from a different domain. I finally came up with the idea of loading a popup of their site, and closing it after 1 or 2 seconds. It works most of the time, but sometimes it closes before the cookie loads. I just need to know when the popup is done loading, so that I can close it.