I'm creating a popup window like this:
var win = window.open(blah blah blah)
I want to be able to tell in my calling page when the popup window closes, or better yet, when the form on the popup is submitted. I have tried this:
var win = window.open(blah blah blah);
win.onunload = MyUnloadFunction;
but it doesn't work; my onunload handler isn't called.
What am I missing?