on a click event, I am running this code:
win = window.open(a.href);
i = setInterval(function () {
if (win.closed) {
/* do things */
}
}, 250);
this works fine in Firefox and Chrome, but in IE (9) it says that win is undefined or null. How can I work around this?
EDIT: The window IS opened correctly in IE, it's just that a reference to it is not saved in win like it is in Firefox/Chrome.