Easy Tutorial
❮ Dom Obj Quote Prop Submit Disabled ❯

History length Property


Definition and Usage

The length property declares the number of elements in the browser's history list.

Note: Internet Explorer and Opera start from 0, while Firefox, Chrome, and Safari start from 1.

Syntax


Browser Support

All major browsers support the length property.


Example

Example

Returns the number of URLs in the history list:

The output of the above example:


❮ Dom Obj Quote Prop Submit Disabled ❯