Lately I’ve been digging into the
Window.history API, documented here.
The History object contains some interesting information. One key I’ve enjoyed exploring is
length tells you the length of your browser session’s history. It is accessible via
In a new browser tab, the function returns 1:
> window.history.length; < 1