Hey all,
I have a script that dynamically sets the window.onunload of the current
window to point to a function that, when run, will close another dependent
window (if it's opened). This works fine when I am hitting refresh on the
browser, as the onunload event for the window fires and closes the other
dependent window. However, if I close the window, it is still firing the
onunload event, but I am getting a javascript "Permission denied" error (and
since I have script errors always showing, I see it before the window
closes). Sometimes it closes the dependent window, sometimes it doesn't.
Any ideas what might be going on here or a workaround? The same code works
fine in Firefox and I have not tested it in anything else. The IE version
is 6 (with SP2).
Thanks,
David