JavaScript History


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


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


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.