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: 2017/12/18 14:59,
|©2017 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.piclist.com/techref/language/html/ib/Scripting_Reference/histo.htm"> The History object</A>
|Did you find what you needed?|
PICList 2017 contributors:
o List host: MIT, Site host massmind.org, Top posters @20171218 RussellMc, Van Horn, David, Sean Breheny, James Cameron, alan.b.pearce, IVP, Neil, Bob Blick, David C Brown, John Gardner,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!