Can anyone tell me how to fire the window.onunload
event in Firefox?
My JavaScript is:
window.onunload = function () {
logout();
};
I need to logout the chat session when my application get closes.
Any alternative to jQuery is there?
Can anyone tell me how to fire the window.onunload
event in Firefox?
My JavaScript is:
window.onunload = function () {
logout();
};
I need to logout the chat session when my application get closes.
Any alternative to jQuery is there?
Thanks for Jan Hančič.
I got the solution for onunload in firefox by changing the asynchronous in to synchronous call request.
And its worked well...