aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/api/document/writeln/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ru/web/api/document/writeln/index.html')
-rw-r--r--files/ru/web/api/document/writeln/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/files/ru/web/api/document/writeln/index.html b/files/ru/web/api/document/writeln/index.html
index adc4669261..a10ec57f83 100644
--- a/files/ru/web/api/document/writeln/index.html
+++ b/files/ru/web/api/document/writeln/index.html
@@ -7,28 +7,28 @@ translation_of: Web/API/Document/writeln
<p>Выводит в документ строку со знаком перевода каретки в конце.</p>
-<h2 id="Syntax" name="Syntax">Синтаксис</h2>
+<h2 id="Syntax">Синтаксис</h2>
<pre class="eval">document.writeln(<em>line</em>);
</pre>
-<h3 id="Parameters" name="Parameters">Параметры</h3>
+<h3 id="Parameters">Параметры</h3>
<ul>
<li><code>line</code> - строка содержащая текст. </li>
</ul>
-<h2 id="Example" name="Example">Пример</h2>
+<h2 id="Example">Пример</h2>
<pre>document.writeln("&lt;p&gt;введите пароль:&lt;/p&gt;");
</pre>
-<h2 id="Notes" name="Notes">Примечания</h2>
+<h2 id="Notes">Примечания</h2>
<p><strong>document.writeln</strong> тоже самое, что <a href="/en/DOM/document.write" title="en/DOM/document.write">document.write</a> но добавляет знак новой строки.</p>
<div class="note"><strong>Примечание:</strong> <strong>document.writeln</strong> (как и <strong>document.write</strong>) не работает с XHTML документами (вы получите ошибку "Operation is not supported" (<code>NS_ERROR_DOM_NOT_SUPPORTED_ERR</code>) в консоли ошибок). Происходит это, если открыть локальный файл с расширением .xhtml или документ с MIME типом application/xhtml+xml. Больше информации доступно на <a class="external" href="http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite">W3C XHTML FAQ</a>.</div>
-<h2 id="Specification" name="Specification">Спецификации</h2>
+<h2 id="Specification">Спецификации</h2>
<p><a class="external" href="http://www.w3.org/TR/2000/WD-DOM-Level-2-HTML-20001113/html.html#ID-35318390">writeln </a></p>