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/document/height/index.html | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 files/fr/web/api/document/height/index.html (limited to 'files/fr/web/api/document/height') diff --git a/files/fr/web/api/document/height/index.html b/files/fr/web/api/document/height/index.html new file mode 100644 index 0000000000..8f69f2dbbc --- /dev/null +++ b/files/fr/web/api/document/height/index.html @@ -0,0 +1,44 @@ +--- +title: Document.height +slug: Web/API/Document/height +translation_of: Web/API/Document/height +--- +
{{APIRef("DOM")}} {{Obsolete_header}}
+ +
+

Note: Apparu avec {{Gecko("6.0")}}, document.height n'est plus supporté. Utilisez à la place document.body.clientHeight. Voir {{domxref("element.clientHeight")}}.

+
+ +

Résumé

+ +

Retourne la hauteur de l'objet {{domxref("document")}}. Dans la plupart des cas, ceci est égal à l'élément {{HTMLElement("body")}} du document courant.

+ +

Syntaxe

+ +
height_value = document.height
+
+ +

Exemple

+ +
// alert document height
+alert(document.height);
+
+ +

Alternatives

+ +
document.body.clientHeight
+document.documentElement.clientHeight
+document.documentElement.scrollHeight
+
+ +

Spécification

+ +

HTML5

+ +

Voir aussi

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