Level 102
So nothing happens? or you get a wrong popup message?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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.