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.
Its syntax is:- history.length
Its return is:- number of entries in the history list