Array of all of the URLs that a user has visited with the current browser window.
Platform Support
| IE | Mozilla | Netscape | Opera | Chrome | Safari | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 5.0+ | 1.0+ |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Chrome | Safari | ||
|---|---|---|---|---|---|---|---|---|---|
|
History Constructor() : History
Creates a new instance of a History object.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 5.0+ | 1.0+ | ||
History() : HistoryCreates a new instance of a History object. Returns
|
|||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Chrome | Safari |
|---|---|---|---|---|---|---|---|
|
Number of URLs that a user has visited with the current browser window.
|
No Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 5.0+ | 1.0+ |
|
|
|||||||
Functions
| Method | Action | IE | Mozilla | Netscape | Opera | Chrome | Safari | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
back() : void
Goes back one to the last previous URL in the history array.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 5.0+ | 1.0+ | ||||||||
|
Returns
|
|||||||||||||||
|
forward() : void
Goes forward one to the next URL in the history array.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 5.0+ | 1.0+ | ||||||||
|
Returns
|
|||||||||||||||
|
go(Number relative_position, String target_string) : void
Goes to the specified previously visited URL from the history array.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 5.0+ | 1.0+ | ||||||||
|
Parameters
Returns
|
|||||||||||||||
References
Availability
JavaScript 1.0