I want to add my custom message in the onbeforeunload
function
window.onbeforeunload = function() {
if(changes){
return 'Are you sure you want to leave without saving changes?';
}
}
But its showing default message, is there any possibility to overwrite it?