go method (Preliminary)

Switch View :
ScriptFree
go method

[This documentation is preliminary and is subject to change.]

Applies to: desktop apps only

Loads a URL from the History list.

This method is not supported for Metro style apps using JavaScript.

Syntax

var retval = history.go(pvargdistance);

Standards information

There are no standards that apply here.

Parameters

pvargdistance [in]

Type: VARIANT

Variant that specifies an integer or a string. An integer indicates the relative position of a URL in the History list. A string indicates an exact URL in the History list.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

An error does not occur if the user tries to go beyond the beginning or end of the history. Instead, the user remains at the current page.

See also

history
Reference
back
forward

 

 

Build date: 3/8/2012

Community Content

EricLaw-MSFT
Standards information is wrong
Claim: This has been in the standards since at least ecmascript 1.3 - and the behavior is in conflict with the published standard.

Response: That seems rather unlikely, since ECMAScript defines the behavior of the ECMAScript/JavaScript language, and this page describes a method of an object in the Document Object Model, which is defined by the W3C DOM specs.