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,452
  • 4
  • 32
  • 58
Developer
  • 1,425
  • 2
  • 22
  • 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
  • 12
  • 24