0

Alert not working in .unload() ????

Alert not working in .unload() ????

28th Sep 2018, 5:43 AM
Vineet Krishna Pal
Vineet Krishna Pal - avatar
3 odpowiedzi
+ 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/
28th Sep 2018, 8:31 AM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
0
hey berger thanks for help but i need call a funtion on mobile back button press
28th Sep 2018, 11:38 AM
Vineet Krishna Pal
Vineet Krishna Pal - avatar
0
and show my custom msg
28th Sep 2018, 11:39 AM
Vineet Krishna Pal
Vineet Krishna Pal - avatar