user384080
user384080

Reputation: 4692

unload in firefox

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

Answers (1)

Marko
Marko

Reputation: 72222

Use window.onunload instead?

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

Upvotes: 1

Related Questions