onbeforeunload / custom messages removed

Questions related to using nuBuilder Forte.

onbeforeunload / custom messages removed

Postby kev1n » Wed Oct 28, 2020 4:00 pm

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
If you like nuBuilder, please leave a review on SourceForge

nuBuilder Code Library (82)
Installation Guides
Updating nuBuilder

Join Discord to talk about nuBuilder!
kev1n
 
Posts: 1084
Joined: Mon Oct 15, 2018 2:13 am

Return to General