JavaScript Windows history.length
JavaScript Windows history.length
The length property is used for returning the number of URLs in the history list of the current browser window. Its least value is 1 because the list includes the current page. It is useful if we want to find how many pages we have visited in the current browsing session.
Syntax:-
Its syntax is:- history.length
Return:-
Its return is:- number of entries in the history list