This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

go

Summary

Navigates to a relatively positioned history record.

Method of dom/Historydom/History

Syntax

 history.go(relativePosition);

Parameters

relativePosition

Data-type
Number

The relative position of a URL in the history list. Out of bounds position (-1 when the current document is the first history record) does nothing.

Return Value

No return value

Notes

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

Related pages

  • history
  • Reference
  • back
  • forward

Attributions