history - The window's history object which is the list of URLs that the current window has loaded. Its methods include:
back() - The same as using the back button on the browser, causes the previous document to be loaded.
forward() - The same effect as using the forward button on the browser, the next document in the history list is loaded if there is one.
go(number) - A numeric value may be passed to this function. If the numeric value is 0, the current document is reloaded. If it is above 0, the document the correct number of entries ahead in the history list is loaded. If the value is negative a document the correct number of entries back in the history list is loaded.
History object also has the following properties Property Description
"next" represents the next page url in the history object list, if any.
"previous" represents the previous page url in the history object list, if any.
"current" represents the current page url in the history object length
"length" returns the number of objects in the history list.
Comment