History.go() (Method)

Return to a URL from the history array.

Availability:

JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Opera browser - 3.0
JavaScript syntax:-myHistory.go(anIndex)
-myHistory.go(aURL)
-myHistory.go(aDocTitle)
Argument list:anIndexDenotes which history item to go to
aURLA URL value to go to
aDocTitleThe name of a document (in Netscape)

You can perform a soft reload of a page, retaining its current settings by means of the History.go(0) method call.

The following values are meaningful as an argument:

Warnings:

Example code:

   // Recall a page from the history keeping form settings intact
   history.go(-1);

See also:Location.reload()