Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
garrysidhu777 opened this issue Jun 4, 2018 · 3 comments

Comments

@garrysidhu777
Copy link

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.

@virajmohite
Copy link

have you got any clue or reference?

@NightOwl888
Copy link
Collaborator

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.

@snd1890-webs
Copy link

Have any find Solution for this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants