0

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?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Human Being
  • 8,269
  • 28
  • 93
  • 136

1 Answers1

3

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...

Human Being
  • 8,269
  • 28
  • 93
  • 136