Change Language


Follow Navioo On Twitter

History : Object

Array of all of the URLs that a user has visited with the current browser window.

Platform Support

IE Mozilla Netscape Opera Safari
3.0+ 1.0+ 2.0+ 7.0+ 1.0+

Constructors

Constructor Action IE Mozilla Netscape Opera Safari
History Constructor() : History
Creates a new instance of a History object.
Show Details 3.0+ 1.0+ 2.0+ 7.0+ 1.0+

History() : History

Creates a new instance of a History object.

Returns

History
Visibility
internal

Properties

Property Action IE Mozilla Netscape Opera Safari
length : Number
Number of URLs that a user has visited with the current browser window.
No Details 3.0+ 1.0+ 2.0+ 7.0+ 1.0+

Functions

Method Action IE Mozilla Netscape Opera 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+ 1.0+

Returns

void
Availability

JavaScript 1.0

forward() : void
Goes forward one to the next URL in the history array.
Show Details 3.0+ 1.0+ 2.0+ 7.0+ 1.0+

Returns

void
Availability

JavaScript 1.0

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+ 1.0+

Parameters

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.

Returns

void
Availability

JavaScript 1.0|enhanced in JavaScript 1.1

References

Window.history|Location

Availability

JavaScript 1.0

text_javascript Navioo_docs

Examples -> Source code Demo online - > history:

Ajax Javascript feed

↑ Grab this Headline Animator