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

flavio flavio at economisa.com.br
Tue Mar 15 06:42:40 CST 2005


onBeforeUnload

Check it on go.icq.com (java version), it warns you before leaving the page.


Citando Sanjeev J Singh <ssingh at emind.com>:

> Hi,
> 
> 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.
> 
> Thanks,
> Sanjeev
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 




------------------------------------
Mensagem enviada pelo WebMail Netsol



More information about the Javascript mailing list