Browser Session History (Currently only supported by Google Chrome )
The sequence of Documents in a browsing context is its session history. History objects represent their browsing context's session history as a flat list of session history entries. Each session history entry consists of a URL and optionally a state object, and may in addition have a title, a Document object, form data, a scroll position, and other information associated with it.
URLs without associated state objects are added to the session history as the user (or script) navigates from page to page. At any point, one of the entries in the session history is the current entry.
Sample of History Session API methods:
- state() - Returns the current state object.
- back()/forward() - Goes back/forward one step in the joint session history.
- pushState(data, title [, url ])- Pushes the given data onto the session history, with the given title, and, if provided, the given URL.
- replaceState(data, title [, url ] ) - Updates the current entry in the session history to have the given data, title, and, if provided, URL.