Catch closing tab/menu changing event.
Does anyone know how to get the closing tab/menu changing event in a CSP? I've tried the JS "OnBeforeUnload" already but it seems the browsers aren't allowing it anymore. I need to show a pop-up that holds the user if trying to get away before completing the stage.
Poking around a bit, here's the best explanation I could find for how to implement such behavior: https://stackoverflow.com/a/7317311/2323797