-2
How do I send a confirmation message "Do you want to leave the site? it is possible that the changes made are not saved", when the user changes something from a form and clicks back without saving, using javascript (React)
-2
How do I send a confirmation message "Do you want to leave the site? it is possible that the changes made are not saved", when the user changes something from a form and clicks back without saving, using javascript (React)
Browser other questions tagged javascript
You are not signed in. Login or sign up in order to post.
Please edit the question to limit it to a specific problem with sufficient detail to identify an appropriate answer.
–
You have already done something ? could you show what you did? If not, this link may have what you are looking for and may give you a way. https://answall.com/questions/30358/howto detectar-o-clique-nosbot%C3%B5es-back-avan%C3%A7ar-reload-do-google-Chrome
– Gabriel Branger
This answers your question? How to detect click on Chrome Back/Next/Reload buttons
– Gabriel Branger