Page 1 of 1

onbeforeunload / custom messages removed

Posted: Wed Oct 28, 2020 7:30 am
by kev1n
Hi,

nuBuilder assigns nuHomeWarning() in onbeforeunload (index.php).

Code: Select all

function nuHomeWarning(){

	if(window.nuEDITED){
		return nuTranslate('Leave this form without saving ?')+'  '+nuTranslate('Doing this will return you to the login screen.');
	}
	return nuTranslate('Doing this will return you to the login screen.');
}
But this is not supported anymore.
Browsers support and the removal of the custom message:

Chrome removed support for the custom message in ver 51 min
Opera removed support for the custom message in ver 38 min
Firefox removed support for the custom message in ver 44.0 min
Safari removed support for the custom message in ver 9.1 min
Chrome: Remove custom messages in onbeforeunload dialogs
https://developers.google.com/web/updat ... ad_dialogs