Hello! Is there a way to kill the unload function with javascript(jquery)?
I am looking for something like this:
window.onbeforeunload = function(){
confirm("Close?")
}
or in jquery:
$(window).unload(function() {
confirm("close?")
});
Now, on window unload I get my confirm alert but it will continue in any case. Clicking cancel it won't stay on my page. Can U help me plz?