Availability: |
| ||||||
JavaScript syntax: | - | myHistory.go(anIndex) | |||||
- | myHistory.go(aURL) | ||||||
- | myHistory.go(aDocTitle) | ||||||
Argument list: | anIndex | Denotes which history item to go to | |||||
aURL | A URL value to go to | ||||||
aDocTitle | The 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:
-4 indicates you want to go back 4 pages.
-1 indicates you want to go back one page.
0 requests a reload of the current page
2 indicates you want to go forward two pages
A URL indicates a specific page to load
A Document title references the history list associatively
There are some bugs in this method in versions of Netscape prior to version 4. MSIE version 3 also exhibits unruly behavior.
See also: | Location.reload() |
Prev | Home | Next |
History.forward() | Up | History.length |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |