0
Alert not working in .unload() ????
Alert not working in .unload() ????
3 Antworten
+ 4
$(window).on("unload", function() {
x = alert("Alert when document unloads.");
return x;
});
Most browsers will ignore calls to alert(), confirm() and prompt() inside the event handler. Read more.. https://api.jquery.com/unload/
0
hey berger thanks for help but i need call a funtion on mobile back button press
0
and show my custom msg