Java Reference
In-Depth Information
The Browser History
The window.history property can be used to access information about any previously
visited pages in the current browser session. Avoid confusing this with the new HTML5 His-
tory API. [2]
The window.history.length property shows how many pages have been visited be-
fore arriving at the current page.
The window.history.go() method can be used to go to a specific page, where 0 is the
current page:
window.history.go(1); // goes forward 1 page
window.history.go(0); // reloads the current page
window.history.go(-1); // goes back 3 pages
There are also the window.history.forward() and window.history.back()
methods that can be used to navigate forwards and backwards by one page respectively, just
like using the browser's forward and back buttons.
 
Search WWH ::




Custom Search