History API
Java
Traversing History
With the methods , back()
and go(int)
you can programmatically traverse the browser’s history entries. The methods correspond to the user actions on the browser’s back and forward buttons.
Handling user navigation
If you want to manually handle navigation events you can replace it by setting a handler for navigation events using the history.setHistoryStateChangeHandler(HistoryStateChangeHandler)
. It will be notified when:
Java
Changing history
Java