Answer the question
In order to leave comments, you need to log in
Popup window when changing the route (Detailed question inside)?
There is such a task. For example, the user is located at /main and goes to the /about page. I need to be able to track that the user leaves the page and a pop-up window pops up with the question "If you go, then the entered data will be lost." If he presses "Yes", then we leave accordingly, if "No", then we return. I'm looking for how to do this, through history, location, but I can't figure out how to implement it. Please tell me or poke me with your nose, because I don’t understand how to google it. I don't find anything similar.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question