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
- Apple Safari
- Internet Explorer
- HTML | DOM length Property
- HTML | DOM History go() Method
- HTML | DOM Storage length Property
- HTML | DOM Form length Property
- HTML | DOM Select length Property
- HTML | Window length Property
- HTML | DOM History back() Method
- HTML | DOM History forward() Method
- CSSStyleDeclaration length Property
- jQuery | length property
- HTMLCollection length Property
- HTML | DOM dir Property
- HTML | DOM URL Property
- HTML | DOM id 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 email@example.com. 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.