History objects
The History object contains a Url,history object that is accessed by the user (in a browser window) as part of a Window object that can be accessed by the Window.history property, without the public standard applied to the History object. However, all browsers support this object
History Object Properties
Length declares the number of elements in the browser history list
Grammar: history.length;
Example: document.write (history.length); Output 45
History Object method
Back () load the previous URL in the History list (if present), the effect of calling the method is equivalent to clicking the rewind button or calling History.go (-1)
Syntax: History.back ();
Forward () loads the next URL in the History list, and the effect of calling the method is equivalent to clicking the Forward button or calling History.go (1)
Syntax: History.forward ();
Go () Loads a specific page in the History list, the URL parameter uses a URL to access, or a substring of the URL, and the number parameter uses the relative position of the URL to be accessed in the History URL list
Syntax: History.go (number| URL);
URL test, did not achieve the desired test results, do not know what is going on, if you know, say it!