onUnload delimma...

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello and thank you!

I have a window that I have opened explicitly from an opener. It has no "location" bar. All you can do in this window is either

browse through the pages of a manual using "NEXT" and "PREV" links I have provided
or
Close the window using a link I have provided
or
Close the window using the X button in the top-right of the title bar.


MY DELIMMA:
I need to do some DB updatiing when a visitor closes the window (I was thinking of using an onUnload---> open a 1x1 window which performs the DB updating then closes itself).


If I use an OnUnload event to detect the unloading of the page, I can't distinguish between the user moving from page to page of the manual or actually CLOSING the window.

Any ideas?

I suppose I could use a frameset and when the parent closes...do my cleanup....but I hate frames.

.


Quantcast