Example 1 — Example
Typical usage.
JavaScript
console.log(typeof history);
console.log(typeof history.pushState);
console.log("history.pushState({}, '', '/page')");How It Works
- history. Window session history.
- pushState. Change URL without reload.
