Detect browser or tab closing for live tracking

Prevent leaving live tracking page whenever the user is trying to leave the page by:

  • clicking the "Back" button
  • reloading the page
  • typing in a new URL
  • clicking on a link on your page
  • when trying to close the current tab or the whole browser
Edited by Regis