History

history.pushState(stateObj, "page 2", "bar.html"); history.replaceState(stateObj, "page 2", "bar.html"); var currentState = history.state;