Sourabh Dhiman

Sourabh Dhiman

  • 1.6k
  • 323
  • 16.4k

Alert not show with beforeunload event.

Oct 20 2019 5:08 AM
$(window).on('beforeunload', function () {
alert('Do You Want Close This');
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 . 

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (1)