FRAMESET onUnLoad and IE
Posted on 2000-04-20
I am developing an extranet where clients log in. In order to figure out when they leave (and do some mop up work) I set the whole extranet (after the login screen) into a 1 frame frameset. On that page I use the frameset's onUnLoad event to do the logout mop up work, and display a goodbye window for 5 secs. Now this works good for the most part. If someone types an address, it will try to unload the frameset and I'm in business.
But here's the problem. A user, if they choose, should be able to open up a new browser window and go elsewhere. In NS theres no problem. The new window opens up with their homepage, and they can go anywhere they want. But in IE the new window opens up with the eact same page as what was in the first window. If the user then goes elsewhere on the 2nd window it triggers the onunLoad event, and the user is logged out of both windows!
How can I work this so it doesn't happen? Thanks in advance.