Glossary Term
History.replaceState()
The replaceState() method of the History interface modifies the current history entry, replacing it with the state object and URL passed in the method parameters. This method is particularly useful when you want to update the state object or URL of the current history entry in response to some user action.
Inputs: state An object which is associated with the history entry passed to the replaceState() method. The state object can be null. unused This parameter exists for historical reasons, and cannot be omitted; passing the empty string is traditional, and safe against future changes to the method. url The URL of the history entry. The new URL must be of the same origin as the current URL; otherwise the replaceState() method throws an exception.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
