Detecting use of android button back using javascript

On my site there are crackers that highlight what stage the user has reached in the process. Bread chests rely on browser history to indicate which stage should be highlighted when using the browser back button, but on Android devices using the hardware back button, this seems to get around and the highlighted bundle does not change.

My site does not use a phone latch or something similar, as it is usually not a mobile site, so I can use the Android back button function so that I can add an event to set the palette selection based on the history log when the button is used, just using javascript or jQuery?

+6
source share

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


All Articles