goog.demos.history3.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/
History Demo 3
This page demonstrates a goog.History object used in an iframe. Loading JS
code in an iframe is useful for large apps because the JS code can be sent in
bite-sized script blocks that browsers can evaluate incrementally, as they are
received over the wire.
For an introduction to the goog.History object, see history1.html and history2.html. This demo uses visible history, like
the first demo.
Try following the hash links below, or updating the location with your own
tokens. Replacing the token will update the page address without appending a
new history entry.
Set #fragment
first
second
third
Set Token
The current history state:
The state should be correctly restored after you
leave the page and hit the back button.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy