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