iLength Integer that receives the number of elements.
The property is read-only. The property has no default value.
Standards Information
There is no public standard that applies to this property.
2.Methods
back: Loads a previous URL from the History list.
forward: Loads the next URL from the History list.
go: Loads a URL from the History list.
Syntax
history.back( [iDistance])
Parameters
iDistance Optional. Integer that specifies the number of URLs to go back. If no value is provided, the previous URL is loaded.
Return Value
No return value.
Remarks
This method performs the same action as a user clicking the Back button in the browser.
The back method works the same as history.go(-1).
An error does not occur if the user tries to go beyond the beginning of the history. Instead, the user remains at the current page.
Standards Information
There is no public standard that applies to this method.
Syntax
history.forward()
Return Value
No return value.
Remarks
This method performs the same action as when a user clicks the Forward button in the browser. Calling the forward method works the same as calling the go method with a parameter of 1. An error does not occur if the user tries to go beyond the end of the history. Instead, the user remains at the current page.
Standards Information
There is no public standard that applies to this method.
Syntax
history.go(vLocation)
Parameters
vLocation Required. Variant that specifies an integer or a string. An integer indicates the relative position of a URL in the History list. A string indicates an exact URL in the History list.
Return Value
No return value.
Remarks
An error does not occur if the user tries to go beyond the beginning or end of the history. Instead, the user remains at the current page.
Standards Information
There is no public standard that applies to this method.
from
http://www.webdevelopersjournal.com/articles/dhtml3/dhtml3.html
The history object
When you are surfing the net, you often use the back and forward buttons to go back to a page you have already visited. The history object allows us to travel forwards and backwards in script.
The use of the history object is straightforward.
history.back();
sends us back one page
history.forward();
sends us forward one page
We can also use
history.go(n);
which sends us forward n pages (n>0), or back n pages (n<0).
history.length retrieves the number of elements in the History list.