PDA

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



liotrox
1 Dec 2006, 2:14 AM
Hi,

I have page with this code:



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

<script>
function myFunc() { alert('event fired'); }
</script>



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

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