|
JavaScript History Object
The JavaScript History Object is property of the window object.
Properties
- current - The current document URL.
- length - The number of entries in the history object.
- next - The URL of the next document in the history object.
- previous - The URL of the last document in the history object.
Methods
|
|
go(relPos | string) - This function will accept an integer or a string. If an integer is used, the browser will go forward or back (if the value is negative) the number of specified pages in the history object (if the requested entry exists in the history object). The following example will move the browser back one page.
<FORM>
<INPUT TYPE="button" VALUE="Go Back" onClick="history.go(-1)">
</FORM>
|
|