codedance / jquery.AreYouSure

A light-weight jQuery "dirty forms" Plugin - it monitors html forms and alerts users to unsaved changes if they attempt to close the browser or navigate away from the page. (Are you sure?)
508 stars 145 forks source link

Custom Message not Working in Chrome 51 and IE 11 #113

Open Shantanu38 opened 7 years ago

Shantanu38 commented 7 years ago

I am trying to send custom message in alert box. It didnt worked in my application. below is code snippet.I have created variable .

$('#searchCriteria').areYouSure( { 'message' : userNavigateAwayMessage
});

Then i verified it on your sites, its not showing custom messages too. image image

lenamtl commented 7 years ago

For security reason this cannot be modified, this message is generated by the browser. I have not found any way to bypass this message using this script or similar script.

JFern93 commented 7 years ago

I hope there is a workaround on this or any way to bypass the security. :(

KrunchMuffin commented 7 years ago

never will be

https://developers.google.com/web/updates/2016/04/chrome-51-deprecations?hl=en