SyntaxFix
Write A Post
Hire A Developer
Questions
Try placing a return; instead of a message.. this is working most browsers for me. (This only really prevents dialog's presents)
return;
window.onbeforeunload = function(evt) { //Your Extra Code return; }