3

Is it possible to catch the following event?

  1. A user closes a tab where my app is running in?
  2. A user closes a browser where my app is running in?

How can I implement a listener for these events?

1 Answers1

0

You can listen for an onbeforeunload event

See Eli Grey's answer below

Intercept page exit event

Community
  • 1
  • 1
Alex Faunt
  • 529
  • 4
  • 6