Code: Select all
window.onbeforeunload = function() {
return 'Why Firefox is not showing this message? All other browsers are...';
}
I'd hate to turn away users who use Firefox 4 as in my application in certain scenarios I do need to show a custom message. Same goes for many legitimate websites.
Good day.