[Javascript] How to execute a function on browser close window?

Sanjeev J Singh ssingh at emind.com
Tue Mar 15 01:14:43 CST 2005


What is the best way (sure shot way) to execute a function when a user
closes a browser window using the X button of the browser. I'm using
onUnload in the body tag but the event doesn't always fires.


More information about the Javascript mailing list