The History length property in HTML is used to return the count of URLs in the history list of the current browser window. The minimum value returned by this property is 1 because the current page is loaded at the moment whereas the maximum count that can be displayed in 50. Web browsers such as Internet Explorer and opera start the count with 0.
Below program illustrates the History length Property in HTML:
After click on the button:
Supported Browsers: The browser supported by History length Property are listed below:
- Google Chrome
- Internet Explorer
- HTML | DOM length Property
- HTML | DOM History go() Method
- HTML | DOM Form length Property
- HTML | DOM Storage length Property
- HTML | Window length Property
- HTML | DOM Select length Property
- HTML | DOM History forward() Method
- HTML | DOM History back() Method
- Git - Changing History
- CSS StyleDeclaration length Property
- jQuery | length property
- HTMLCollection length Property
- HTML | DOM id Property
- HTML | DOM dir Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.