aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/api/document/writeln/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/it/web/api/document/writeln/index.html')
-rw-r--r--files/it/web/api/document/writeln/index.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/files/it/web/api/document/writeln/index.html b/files/it/web/api/document/writeln/index.html
new file mode 100644
index 0000000000..080eb49c4e
--- /dev/null
+++ b/files/it/web/api/document/writeln/index.html
@@ -0,0 +1,34 @@
+---
+title: Document.writeln()
+slug: Web/API/Document/writeln
+translation_of: Web/API/Document/writeln
+---
+<p>{{ ApiRef("DOM") }}</p>
+
+<p>Scrive una stringa di testo seguita da un carattere di accapo nel documento.</p>
+
+<h2 id="Syntax" name="Syntax">Sintassi</h2>
+
+<pre class="eval">document.writeln(<em>riga</em>);
+</pre>
+
+<h3 id="Parameters" name="Parameters">Parametri</h3>
+
+<ul>
+ <li><code>riga</code> è una stringa contenente una riga di testo.</li>
+</ul>
+
+<h2 id="Example" name="Example">Esempio</h2>
+
+<pre>document.writeln("&lt;p&gt;inserisci una password:&lt;/p&gt;");
+</pre>
+
+<h2 id="Notes" name="Notes">Note</h2>
+
+<p><strong>document.writeln</strong> è uguale a <a href="/en/DOM/document.write" title="en/DOM/document.write">document.write</a>, in più aggiunge una nuova riga.</p>
+
+<div class="note"><strong>Nota:</strong> <strong>document.writeln</strong> (come <strong>document.write</strong>) non funziona nei documenti XHTML (restituisce un errore "Operation is not supported" (Operazione non supportata) (<code>NS_ERROR_DOM_NOT_SUPPORTED_ERR</code>) sulla console degli errori). Questo può capitare per esempio aprendo un file locale con estensione .xhtml o qualsiasi documento da un server che abbia MIME type application/xhtml+xml. Altre informazioni sono disponibili nelle <a class="external" href="http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite" title="http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite">W3C XHTML FAQ</a>.</div>
+
+<h2 id="Specification" name="Specification">Specifiche</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>