Confirmation message and click on the BACK of the JAVASCRIPT browser?

Asked

Viewed 19 times

-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)

  • 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

  • 1
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.