Array of all of the URLs that a user has visited with the current browser window.
Browser/User Agent Support
| IE | Mozilla | Netscape | Opera | Safari | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|---|
Constructors
| Constructor | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Creates a new instance of a History object. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Properties
| Property | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Number of URLs that a user has visited with the current browser window. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Methods
| Method | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Goes back one to the last previous URL in the history array. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Goes forward one to the next URL in the history array. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Goes to the specified previously visited URL from the history array. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
References
Availability
JavaScript 1.0
Constructor Detail
Property Detail
Method Detail
back() : void
Goes back one to the last previous URL in the history array.
- Availability
JavaScript 1.0
forward() : void
Goes forward one to the next URL in the history array.
- Availability
JavaScript 1.0
go(Number relative_position, String target_string) : void
Goes to the specified previously visited URL from the history array.
| Number | relative_position | Position of the URL in the history array. |
| String | target_string | A string or substring representing the URL in the history array. |
- Availability
JavaScript 1.0 | enhanced in JavaScript 1.1
