Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Catch closing tab/menu changing event.

Question
Andy Coutinho · Feb 25, 2021

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.

#CSP #JavaScript #Caché

Source URL:https://community.intersystems.com/post/catch-closing-tabmenu-changing-event