Alerts when navigating away from a web page
By the browser. It’s the beforeunload event handler that returns the customized text of the dialog, which is only the middle of the three paragraphs – the other two paragraphs as well as the text of the buttons cannot be customized or otherwise changed. window.onbeforeunload = function(){ return ‘Testing…’ } // OR var unloadListener = … Read more