
goog.demos.history2.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-closure-library
Show all versions of google-closure-library
The Google Closure Library is a collection of JavaScript code
designed for use with the Google Closure JavaScript Compiler.
This non-official distribution was prepared by the ClojureScript
team at http://clojure.org/
goog.History #2
goog.History #2
This page demonstrates the goog.History object which can create new browser
history entries without leaving the page. This version maintains the history
state internally, so that states are not visible or editable by the user, but
the back and forward buttons can still be used to move between history states.
Try setting a few history tokens using the buttons and box below, then hit
the back and forward buttons to test if the tokens are correctly restored.
The current history state:
The state should be correctly restored after you
leave the page and hit the back button.
The history object can also be created so that the history state is visible
and modifiable by the user. See history1.html for a
demo.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy