Javascript Reference
Categories: history

javascript history length

@March 15, 2008, 1:22 a.m.
lengthFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM n/a  

Read-only  

The number of items in the history list. Even with this information, you are not allowed to extract a specific history entry except with signed scripts and the user's permission in Navigator 4 or later.

 
Example
 
if (history.length > 4) {
    ...
}
 
Value

Integer.

 
Default

None.


Powered by Linode.