length property (history)
Returns the number of entries in the history list of the current browser window.
This property returns at least 1, because the history list includes the currently loaded page.
You can find the related objects in the Supported by objects section below.
This property is read-only.
Integer that represents the number of entries.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the length property:
Did you find this example helpful?
User Contributed Comments