Stats

232 Contributors: 4 Monday, July 25, 2016
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

History

Syntax

  • window.history.pushState(domain, title, path);
  • window.history.replaceState(domain, title, path);

Parameters

ParameterDetails
domainThe domain you want to update to
titleThe title to update to
pathThe path to update to

Remarks

The HTML5 History API is not implemented by all browsers and implementations tend to differ between browser vendors. It is currently supported by the following browsers:

  • Firefox 4+
  • Google Chrome
  • Internet Explorer 10+
  • Safari 5+
  • iOS 4

If you want to find out more about the History API implementations and methods, please refer to the state of the HTML5 History API.

Related Examples