All Downloads are FREE. Search and download functionalities are using the official Maven repository.

goog.demos.history3.html Maven / Gradle / Ivy

Go to download

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/

There is a newer version: 0.0-20230227-c7c0a541
Show newest version




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.

Event Log




© 2015 - 2025 Weber Informatics LLC | Privacy Policy