From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/ru/web/api/document/height/index.html | 55 +++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 files/ru/web/api/document/height/index.html (limited to 'files/ru/web/api/document/height/index.html') diff --git a/files/ru/web/api/document/height/index.html b/files/ru/web/api/document/height/index.html new file mode 100644 index 0000000000..f3735ba2f8 --- /dev/null +++ b/files/ru/web/api/document/height/index.html @@ -0,0 +1,55 @@ +--- +title: Document.height +slug: Web/API/Document/height +tags: + - Document + - HTML + - Obsolete + - Property +translation_of: Web/API/Document/height +--- +
{{APIRef("DOM")}} {{Obsolete_header}}
+ +
+

Заметка: Начиная с  {{Gecko("6.0")}}, document.height  больше не поддерживается. Используйте document.body.clientHeight. Также смотрите: {{domxref("element.clientHeight")}}.

+
+ +

Возвращает высоту {{domxref("document")}} объекта. В большинстве случаев, она соответствует {{HTMLElement("body")}} элементу документа.

+ +

Синтакс

+ +
height_value = document.height
+
+ +

Пример

+ +
// вывести высоту документа
+alert(document.height);
+
+ +

Альтернативы

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

Спецификации

+ +

HTML5

+ +

Поддержка браузерами

+ + + +

{{Compat("api.Document.height")}}

+ +

Смотрите также

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