function on() { window.onbeforeunload = function() { return true; }; }