Today I Learned

hashrocket A Hashrocket project

What's the Length of my Browser History?

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. length tells you the length of your browser session's history. It is accessible via window.history.length.

In a new browser tab, the function returns 1:

> window.history.length;
< 1
See More #workflow TILs