Level 102
So nothing happens? or you get a wrong popup message?
Summer Sale! All accounts are 50% off this week.
hi , send mail when a user close or logout a application and i tried unload function for close tab or browser but this function not working
$(document).ready(function(){ $( window ).on('unload',function() { return "Bye now!"; }); });
try this instead. I believe that should call it before it unloads :) Oh and most browsers (all except IE) ignores your custom message. https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload#Browser_compatibility
$('document').ready(function(){ $( window ).on('beforeunload',function() { return "Bye now!"; }); });
Please or to participate in this conversation.