From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/fr/web/api/window/back/index.html | 59 +++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 files/fr/web/api/window/back/index.html (limited to 'files/fr/web/api/window/back/index.html') diff --git a/files/fr/web/api/window/back/index.html b/files/fr/web/api/window/back/index.html new file mode 100644 index 0000000000..653d5b9d61 --- /dev/null +++ b/files/fr/web/api/window/back/index.html @@ -0,0 +1,59 @@ +--- +title: Window.back() +slug: Web/API/Window/back +tags: + - API + - Firefox + - Gecko + - HTML DOM + - Méthode + - Non-standard + - Obsolete + - Window + - back +translation_of: Web/API/Window/back +--- +
{{APIRef}}{{ Non-standard_header() }}{{deprecated_header}}
+ +

La méthode obsolète et non standard back() sur l'objet {{domxref("window")}} renvoie la fenêtre à l'élément précédent de l'historique. Il s'agissait d'une méthode spécifique à Firefox et a été supprimée dans Firefox 31.

+ +
+

Note: Utilisez plutôt la méthode standard {{domxref("history.back")}}.

+
+ +

Syntaxe

+ +
window.back();
+ +

Paramètres

+ +

Aucun.

+ +

Valeur de retour

+ +

undefined.

+ +

Exemple

+ +

Cet exemple simple gère un clic sur un bouton "Retour" en rappelant back().

+ +
function boutonRetour() {
+  if (peutRevenirEnArriere) {
+    window.back();
+  }
+}
+ +

Spécification

+ +

Cela ne fait partie d'aucune spécification.

+ +

Compatibilité des navigateurs

+ +

Cette méthode non standard n'a été implémentée que dans Firefox et a été supprimée dans Firefox 31.

+ +

Voir également

+ + -- cgit v1.2.3-54-g00ecf