$(document).ready(function(){ $(window).on(‘beforeunload’, function(e){ if(CheckFunctionForConfirmation()){ return ‘Are you sure you want to leave without saving?’; } }); }); Read more →
$(document).ready(function(){ $(window).on(‘beforeunload’, function(e){ if(CheckFunctionForConfirmation()){ return ‘Are you sure you want to leave without saving?’; } }); }); Read more →