Nos bénévoles n'ont pas encore traduit cet article en Français. Inscrivez-vous et aidez-nous à réaliser cette tâche !
Vous pouvez également lire cet article en English (US).

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.

The obsolete and non-standard method back() on the Window interface returns the window to the previous item in the history. This was a Firefox-specific method and was removed in Firefox 31. Use the standard history.back() method instead.

Syntax

window.back();

Parameters

None.

Return value

undefined.

Example

This simple example handles a click on a "Back" button by calling back().

function handleMyBackButton() { 
  if (canGoBack) {
    window.back();
  }
}

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

Étiquettes et contributeurs liés au document

Contributeurs à cette page : Bzbarsky, Sheppy, Ac1521, fscholz, teoli, kohei.yoshino, ethertank, Mgjbot, Dria, Callek, JesseW
Dernière mise à jour par : Bzbarsky,