Hi all, I have a cgi script which is connected to a database.If the user
closes the browser, I need to have a javascript event such as onUnload()
event which calls a seperate cgi file and does the clean up job such as
closing the database etc. But onUnload() event also is happening if the
user presses the refresh button on the browser. I do not want to clean up
the database functions if it is refreshed. I want it only if he closes the
broswer.
Any idea of how to trap the browser close event without the event being
called when refreshed?
onUnload() is called when user refreshes the page also. I am using IE5.0
and netscape 4.7 browsers.
Is there any other event such as onExit() event ?? if so what is the
syntax? or any other possible way of achieving this?
Please help me.
you can also reply to my personal account at pydithalli@y...
Thanks
Ashok