history.js
No description.

File Location

/goog/history/history.js

Classes

goog.History
A history management object. Can be instantiated in user-visible mode (uses the address fragment to manage state) or in hidden mode. This object should be created from a script in the document body before the document has finished loading. To store the hidden states in browsers other than IE, a hidden iframe is used. It must point to a valid html page on the same domain (which can and probably should be blank.) Sample instantiation and usage:
// Instantiate history to use the address bar for state.
var h = new goog.History();
goog.events.listen(h, goog.history.EventType.NAVIGATE, navCallback);
h.setEnabled(true);

// Any changes to the location hash will call the following function.
function navCallback(e) {
  alert('Navigated to state "' + e.token + '"');
}

// The history token can also be set from code directly.
h.setToken('foo');
goog.History.Event
Constant for the history change event type.

Public Protected Private

Enumerations

Global Functions

goog.History.isOnHashChangeSupported() boolean
Whether the browser supports HTML5 history management's onhashchange event. http://www.w3.org/TR/html5/history.html. IE 9 in compatibility mode indicates that onhashchange is in window, but testing reveals the event isn't actually fired.
Returns: boolean  Whether onhashchange is supported.
code »

Global Variables

function%15 :
No description.
Code »

Directory history

File Reference