Reputation: 4692
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
Upvotes: 1
Views: 865
Reputation: 72222
Use window.onunload
instead?
https://developer.mozilla.org/en/DOM/window.onunload
Upvotes: 1