View Full Version : 'onunload' event not fired on Netscape 6.x/7.x/8.x

1 Dec 2006, 2:14 AM

I have page with this code:

<body onunload="myFunc()" ....>

function myFunc() { alert('event fired'); }

So this works fine if I not include the YAHOO + YAHOO EXT lib (in particular the event.js file).
Can anyone help on this?

This problem happen only in NS 6.x/7.x/8.x (the 'myFunc' function is not called). In IE and FireFox
is working fine.

Thanks in advance

1 Dec 2006, 5:27 AM
They may be overwriting it. Can you use Event for the unload as well?