When the user tries to close the browser window, a pop-up window appears. But the problem is that it displays its own popup data. So please let me know how I can customize its pop-up content in "Firefox".
window.onbeforeunload = function() { return "my text"; };
Here, instead of "my text", your own data is displayed. Note: its work works fine in Chrome!
Thanks.
source share