@felgallFeb 07.2007 — #Of course since onbeforeunload is non-standard it doesn't fire in all browsers and the only event you can be sure will fire when the page is unloaded is onunload which has just about enough time to execute a half dozen simple statements if you are lucky before it is unloaded along with the rest of the page.
@moiseszaragozaauthorFeb 07.2007 — #No. This is fired when a user leaves the page. There is also onbeforeunload which, of course, fires before [I]onunload[/I].[/QUOTE]
Thanks.
I was testing the onbeforeunload but it happends befor the unload event
@moiseszaragozaauthorFeb 07.2007 — #Of course since onbeforeunload is non-standard it doesn't fire in all browsers and the only event you can be sure will fire when the page is unloaded is onunload which has just about enough time to execute a half dozen simple statements if you are lucky before it is unloaded along with the rest of the page.[/QUOTE]