Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 874 Bytes

index.md

File metadata and controls

51 lines (34 loc) · 874 Bytes
title slug page-type status
Window.forward()
Web/API/Window/forward
web-api-instance-method
deprecated
non-standard

{{APIRef}}{{Non-standard_header}} {{deprecated_header}}

Moves the window one document forward in history. This was a Firefox-specific method and was removed in Firefox 31.

Note: Use the standard {{domxref("History.forward", "history.forward()")}} method instead.

Syntax

forward()

Parameters

None.

Return value

None ({{jsxref("undefined")}}).

Examples

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

Specifications

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

  • {{domxref("History.back()")}}
  • {{domxref("History.forward()")}}