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/history/length/index.html | 47 ++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 files/fr/web/api/history/length/index.html (limited to 'files/fr/web/api/history/length') diff --git a/files/fr/web/api/history/length/index.html b/files/fr/web/api/history/length/index.html new file mode 100644 index 0000000000..aae76e8157 --- /dev/null +++ b/files/fr/web/api/history/length/index.html @@ -0,0 +1,47 @@ +--- +title: History.length +slug: Web/API/History/length +translation_of: Web/API/History/length +--- +
{{APIRef("History API")}}
+ +

La propriété en lecture seule History.length retourne un entier indiquant le nombre d'élément dans l'historique de session, incluant la page courante. Par exemple, pour une page dans un nouvel onglet, la propriété retournera 1.

+ +

Syntaxe

+ +
const length = history.length
+
+ +

Spécification

+ + + + + + + + + + + + + + + + + + + +
SpécificationStatutsCommentaire
{{SpecName('HTML WHATWG', "history.html#dom-history-length", "History.length")}}{{Spec2('HTML WHATWG')}}Pas de changement depuis {{SpecName("HTML5 W3C")}}.
{{SpecName('HTML5 W3C', "browsers.html#dom-history-length", "History.length")}}{{Spec2('HTML5 W3C')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ + + +

{{Compat("api.History.length")}}

+ +

Voir aussi

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