$(document).ready(function(){ $(window).on(‘beforeunload’, function(e){ if(msg(Yes/No)){ // if Yes return ‘Click stay on this page and save the Data.”’; } }); }); Read more →
Category: javascript
Confirmation alert for page exist
$(document).ready(function(){ $(window).on(‘beforeunload’, function(e){ if(CheckFunctionForConfirmation()){ return ‘Are you sure you want to leave without saving?’; } }); }); Read more →