History object represents the browsers history list, which can allow script functions to access the browsers history list.
The History object contains a list of URLs recently visited by the user. It can be accessed to manipulate specific navigation methods.
length property returns the number of current entries in the current history object (i.e. the browser's history list).
back method can be used to load the URL of the document that the browser previously visited. Essentially, it is the same as if the user pressed the 'Back' button on their browser toolbar. I.e.
Forward method is used to load the URL that is next in the document list (NOTE : This assumes that the user has already navigated 'back' through their history list).
Go method acts different when used in Netscape or Internet Explorer. In Netscape, the
Go method can be used, together with a negative or positive integer value to navigate to any URL present in the history list (assuming that the history object contains enough entries to navigate the required integer value). For example :
would navigate to the URL three entries ahead of the current document, while :
would navigate to the URL 2 entries previous to the current document in the history object.
In Internet Explorer, the
Go method is used with a single integer value which represents the absolute position in the history list of the URL to navigate to. For example :
would navigate to the URL third in the history list.
The History object has no events.
© 1995-1998, Stephen Le Hunte
|file: /Techref/language/html/ib/Scripting_Reference/histo.htm, 3KB, , updated: 2007/2/23 02:56, local time: 2022/1/21 08:32,
|©2022 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.massmind.org/techref/language/html/ib/Scripting_Reference/histo.htm"> The History object</A>
|Did you find what you needed?|
Welcome to massmind.org!
Welcome to www.massmind.org!