posted 21 years ago
Well, it depends on how are you doing it.
for example, in IE there is a onbeforeunload event - you can try to use it.
also, in IE 5+ there is a window.showModallesDialog method - my guess it will do exactly what you want without any event handling. In NS4+ you could open a window with "dependant" attribute - and it will do the same thing.