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
Microsoft Developer Network: [Windows Internet Explorer API reference Article]