How to detect a mouse click event in a browser using polymer?

Is it possible to detect that a user has entered a page using the back button in his browser? It is advisable that I detect this action using a polymer.

+6
source share
1 answer

You can probably listen to the popstate event as described here: https://developer.mozilla.org/en-US/docs/Web/Events/popstate

This should work when the "Back" button is pressed, history.back() is called, etc.

0
source

Source: https://habr.com/ru/post/1013454/


All Articles