it_is_a_literature it_is_a_literature - 2 months ago 17
Javascript Question

The history list in my firefox browser

history.length
1


Number 1 displayed on my firefox console,why so many web urls when to click
ctrl+H
?

enter image description here

How to list all the historical urls with javascript?

Answer

history exposes the session history of the current tab/window. I.e., anything you can get back to using the back button in the upper left.

That is not your entire browser history ever visited, which you see when pressing Ctrl+H.

No, the Javascript API doesn't expose a complete history of everything ever, as a simple security measure.