JavaScript History_basics Guide
The History API provides programmatic navigation and URL manipulation without page reload for SPAs. The guide walks through History Methods. `history.pushState(state, "", url)` — add history entry. `history.replaceState(state, "", url)` — replace current. `history.back()` / `forward()` / `go(n)` — navigate. `history.length` — number of entries. `popstate` event fires on back/forward. State object stores serializable data up to 640KB. Modern SPAs use History API for client-side routing. The guide is organized into 1 sections that build on each other, each pairing a prose explanation with runnable code. Related guides: Arrays, Strings, Numbers, Math, Date. This is one of 145 JavaScript guides on JS Reference — see the full list on the guides page. Practice what you learn in the JavaScript playground, and look up any unfamiliar term in the JavaScript glossary.