JavaScript Reference/Javascript Properties/length history
"length" Example
<html>
<body>
<button onclick="alert(window.history.length);">History Length</button>
</body>
</html>
"length" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |history |
+----------------+--------------------------------------------------------------+
"length" Syntax and Note
Note:
Read-only property.
Returns the number of stored URLs in the history object.
Syntax:
history.length