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.