1

I am working on dotnetnuke website. I want to logoff the user when he closes the browser or tab. Please help me to resolve this. How can I detect browser close event and how can logout the user.

Arun Bertil
  • 4,598
  • 4
  • 33
  • 59
Developer
  • 1,435
  • 2
  • 23
  • 48

1 Answers1

0

You can't detect the browser close or tab close using javascript.

Only you can know the page unload, the following events are OnBeforeUnload & OnUnload Neither of these events can tell you the way that you closed the page.

Anto king
  • 1,222
  • 1
  • 13
  • 26