Window.forward()

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Moves the window one document forward in the history. This was a Firefox-specific method and was removed in Firefox 31. Use the standard window.history.forward() method instead.

Syntax

window.forward();

Parameters

None

Return value

undefined.

Example

function goForward() {
  if (canGoForward) {
    window.forward();
  }
}

Specification

This is not part of any specification.

Browser compatibility

This non-standard method was only implemented in Firefox, and was removed in Firefox 31.

See also

Document Tags and Contributors

Contributors to this page: Bzbarsky, Sheppy, SphinxKnight, fscholz, teoli, kohei.yoshino, Mgjbot, Dria, JesseW
Last updated by: Bzbarsky,