You can do this <body onunload="myFunction()">
in your html file, and put your custom stuff into the myFunction. You can do many cool things like this, a list can be found here.
How to overwrite page unload event javascript with custom dialog
-
10-07-2023 - |
Question
How to overwrite page onunload event in javascript witha custom dialog ? Please suggest.
This question has been asked many times but I was unable to find a proper solution.
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow