Hello. I am trying to use the onUnload event to create an uncloseable window. The only problem is that the event does not only trigger when the window is closed, but also when the user refreshes or navigates away from the document. I need to find a way to circumvent this, and spawn a new window if (and only if) the parent window is closed. I have tried everything from checking self.opener and setting session cookies (which apparently do not work across child windows..) Does anyone have any ideas that I might have missed?
Hehehe.. Actually, it's not for subversive purposes.. It is for an internal company web page at the call center I work at.. The page contains information on particular clients, valuable resources for the employees, but some of them inevitably close the browser window. The goal is to have it re-open, but only in the event that it is closed..
To top it all off, I set up the page to refresh automatically every 10 minutes to reflect any changes I made, and as a result during my experiments some of the terminals ended up with 15 or 20 browser windows open by the end of the shift.. :)