$(window).on('beforeunload', function () {
alert('Do You Want Close This');
AjaxCall();
});
This is my code . Not showing alert when relaod browser ,close browser ,tab close in Google chrome and FF .Please this issue.
This code run olny IE .
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Salman BegRank #284 · 8.8K reputationPosted Oct 20, 2019, 3:25 AM EDT