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/writeln/index.html | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 files/ru/web/api/document/writeln/index.html (limited to 'files/ru/web/api/document/writeln/index.html') diff --git a/files/ru/web/api/document/writeln/index.html b/files/ru/web/api/document/writeln/index.html new file mode 100644 index 0000000000..990aec8828 --- /dev/null +++ b/files/ru/web/api/document/writeln/index.html @@ -0,0 +1,34 @@ +--- +title: Document.writeln() +slug: Web/API/Document/writeln +translation_of: Web/API/Document/writeln +--- +

{{ ApiRef("DOM") }}

+ +

Выводит в документ строку со знаком перевода каретки в конце.

+ +

Синтакс

+ +
document.writeln(line);
+
+ +

Параметры

+ + + +

Пример

+ +
document.writeln("<p>введите пароль:</p>");
+
+ +

Примечания

+ +

document.writeln тоже самое, что document.write но добавляет знак новой строки.

+ +
Примечание: document.writeln (как и document.write) не работает с XHTML документами (вы получите ошибку "Operation is not supported" (NS_ERROR_DOM_NOT_SUPPORTED_ERR) в консоли ошибок). Происходит это, если открыть локальный файл с разширением .xhtml или документ с MIME типом application/xhtml+xml. Больше информации доступно на W3C XHTML FAQ.
+ +

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

+ +

writeln

-- cgit v1.2.3-54-g00ecf