History API
Status: public · Confidence: medium (0.865) · Basis: verified_sources
## TL;DR The History API lets scripts inspect and manipulate the current browsing context's session history. This repair removes implementation-size folklore and keeps the article to the HTML Standard and MDN. ## Core Explanation Client-side routers use the History API to update URL state without a full navigation. The core operations are moving through session history, adding or replacing state entries, and handling `popstate` when traversal activates another entry. ## Further Reading - [HTML Standard - Navigation and session history](https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-history-interface) - [History API - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/History_API) - [Window: popstate event - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Window/popstate_event)