Sourabh Dhiman

Sourabh Dhiman

  • NA
  • 323
  • 58.7k

Alert not show with beforeunload event.

Oct 20 2019 5:08 AM
$(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 . 

Answers (1)