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