Sourabh Dhiman

Sourabh Dhiman

  • 1.6k
  • 208
  • 6.1k

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)