jquery.dirtyforms icon indicating copy to clipboard operation
jquery.dirtyforms copied to clipboard

Remove default chrome browser alert message box i.e Leave site? "Changes you made may not be saved."

Open garrysidhu777 opened this issue 7 years ago • 3 comments

Is there any option available in jquery dirty forms to stop the default browser alert and display a custom message on the window before unload? On window unload, I need to return false if any dirty value resides and display custom modal message else prompt nothing and take the user to clicked target. Note: Here I do not want to display the default browser alert message box instead I want to show a custom modal message box.

Thanks! Any response appreciated.

garrysidhu777 avatar Jun 04 '18 13:06 garrysidhu777

have you got any clue or reference?

virajmohite avatar Aug 01 '19 05:08 virajmohite

This is browser specific, but in general, no. There is no way to customize what the browser displays when leaving the page (except for the message on browsers that allow you to customize it).

There was a bug I was tracking down a while back, and if I recall correctly it is possible to display a DirtyForms dialog under the default browser dialog (so you could potentially provide more info). The drawback is that the user would have to answer whether to stay on the page twice.

NightOwl888 avatar Aug 01 '19 07:08 NightOwl888

Have any find Solution for this ?

snd1890-webs avatar Apr 16 '20 04:04 snd1890-webs