aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/api/document/write
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:52 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:52 -0500
commit074785cea106179cb3305637055ab0a009ca74f2 (patch)
treee6ae371cccd642aa2b67f39752a2cdf1fd4eb040 /files/pl/web/api/document/write
parentda78a9e329e272dedb2400b79a3bdeebff387d47 (diff)
downloadtranslated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.gz
translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.bz2
translated-content-074785cea106179cb3305637055ab0a009ca74f2.zip
initial commit
Diffstat (limited to 'files/pl/web/api/document/write')
-rw-r--r--files/pl/web/api/document/write/index.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/files/pl/web/api/document/write/index.html b/files/pl/web/api/document/write/index.html
new file mode 100644
index 0000000000..24daccf070
--- /dev/null
+++ b/files/pl/web/api/document/write/index.html
@@ -0,0 +1,38 @@
+---
+title: document.write
+slug: Web/API/Document/write
+tags:
+ - DOM
+ - Dokumentacja_Gecko_DOM
+ - Gecko
+ - Wszystkie_kategorie
+translation_of: Web/API/Document/write
+---
+<p>{{ ApiRef() }}</p>
+<h3 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h3>
+<p>Zapisuje ciąg tekstu w strumieniu dokumentu otwartym przez <a href="pl/DOM/document.open">document.open</a>.</p>
+<h3 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h3>
+<pre class="eval">document.write(<i>tekst</i>)
+</pre>
+<h3 id="Parametry" name="Parametry">Parametry</h3>
+<ul>
+ <li><code>tekst</code> jest ciągiem znaków preznaczonym do zapisania w dokumencie.</li>
+</ul>
+<h3 id="Przyk.C5.82ad" name="Przyk.C5.82ad">Przykład</h3>
+<pre>document.open();
+document.write("&lt;h1&gt;witam!&lt;/h1&gt;");
+document.close();
+</pre>
+<h3 id="Uwagi" name="Uwagi">Uwagi</h3>
+<p>Zapis do dokumentu, który już się załadował, bez wywoływania <code>document.open</code> spowoduje automatyczne przeprowadzenie <code>document.open</code>. Zaleca się wywołanie <a href="pl/DOM/document.close">document.close</a> po skończeniu zapisu, aby poinformować przeglądarkę, by zakończyła ładowanie strony. Tekst, który zapisujesz, jest parsowany i trafia do modelu struktury dokumentu. W poniższym przykładzie element H1 staje się węzłem. Jeżeli wywołanie <code>document.write()</code> zostało zagnieżdżone bezpośrednio w kodzie HTML, nie spowoduje ono uruchomienia <code>document.open</code>. Np.:</p>
+<pre> &lt;div&gt;
+ &lt;script type="text/javascript"&gt;
+ document.write("&lt;h1&gt;Main title&lt;/h1&gt;")
+ &lt;/script&gt;
+ &lt;/div&gt;
+</pre>
+<h3 id="Specyfikacja" name="Specyfikacja">Specyfikacja</h3>
+<p><a class="external" href="http://www.w3.org/TR/2000/WD-DOM-Level-2-HTML-20001113/html.html#ID-75233634">write </a></p>
+<div class="noinclude">
+  </div>
+<p>{{ languages( { "en": "en/DOM/document.write", "fr": "fr/DOM/document.write", "ja": "ja/DOM/document.write" } ) }}</p>