why mozilla doesnot support onunload event?

Posted by Abhi_patil under ASP.NET on 4/12/2009 | Views : 3828 | Status : [Member] | Replies : 2
i have written javascript on onbeforeunload event in the body tag.
this event calls in internet explorer ,but doesn't calls in mozilla why?
is there any other way to call this event in mozilla?
plz reply..

Thank You..




Responses

Posted by: Majith on: 4/13/2009 [Member] Starter

Up
0
Down
Abhi,

An event that fires before the unload event when the page is unloaded.

Refer the Mozilla Developers Blog:

https://developer.mozilla.org/en/DOM/window.onbeforeunload



Abhi_patil, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Foozuni on: 4/23/2009 [Member] Starter

Up
0
Down
use,
window.onbeforeunload, it works on FF and IE but not in Safari (This is bug in webkit based browsers e.g. safari.)



Abhi_patil, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response