window.onbeforeunload = function() { return "Dont leave me"; return; };
So thats my HTML-Code(JavaScript) so far and its working. N