views:

17

answers:

1
+1  Q: 

unload in firefox

Hi,

I have a client register startup script like so:

" " + "document.body.onunload = clearSession; " + "";

The script works fine in IE8 by calling the clearSession() client script but not with firefox. can anyone help please?

thanks

+1  A: 

Use window.onunload instead?

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

Marko