This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

pushState

Summary

Programmatically push a document state (including URI and document title) onto the user agent’s history.

Method of dom/Historydom/History

Syntax

 history.pushState(statedata, title, url);

Parameters

statedata

Data-type
any

The data to push onto the session history.

title

Data-type
any

The desired title for the data.

url

Data-type
any

(Optional)

An optional URL to associate with the data.

Return Value

No return value

Related specifications

HTML 5
W3C Recommendation

Attributions