I have custom message to onbeforeunload event and was working well but I noticed today that it's not showing my message anymore. Instead it shows "changes you made may not be saved"
window.onbeforeunload = function () {
return 'Custom message'
}
can anyone please let me know how to fix it?