aboutsummaryrefslogtreecommitdiff
path: root/files/he/web/api/document/write
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:41:45 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:41:45 -0500
commit1109132f09d75da9a28b649c7677bb6ce07c40c0 (patch)
tree0dd8b084480983cf9f9680e8aedb92782a921b13 /files/he/web/api/document/write
parent4b1a9203c547c019fc5398082ae19a3f3d4c3efe (diff)
downloadtranslated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.gz
translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.bz2
translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.zip
initial commit
Diffstat (limited to 'files/he/web/api/document/write')
-rw-r--r--files/he/web/api/document/write/index.html82
1 files changed, 82 insertions, 0 deletions
diff --git a/files/he/web/api/document/write/index.html b/files/he/web/api/document/write/index.html
new file mode 100644
index 0000000000..8c497d548c
--- /dev/null
+++ b/files/he/web/api/document/write/index.html
@@ -0,0 +1,82 @@
+---
+title: 'Document.write():'
+slug: Web/API/Document/write
+translation_of: Web/API/Document/write
+---
+<div>{{ ApiRef("DOM") }}</div>
+
+<p><strong><code>()Document.write</code></strong> - כותב מחרוזת טקסט אל גוף מסמך HTML.</p>
+
+<h2 id="תחביר">תחביר</h2>
+
+<pre class="brush: js">document.write(<em>markup</em>);
+</pre>
+
+<h3 id="פרמטרים">פרמטרים</h3>
+
+<dl>
+ <dt><code>markup</code></dt>
+ <dd>מחרוזת המכילה את הטקסט שיופיע במסמך.</dd>
+</dl>
+
+<h3 id="דוגמה">דוגמה</h3>
+
+<pre class="brush: html">&lt;html&gt;
+
+&lt;head&gt;
+ &lt;title&gt;write example&lt;/title&gt;
+
+ &lt;script&gt;
+ function newContent() {
+ alert("load new content");
+ document.open();
+ document.write("&lt;h1&gt;Out with the old - in with the new!&lt;/h1&gt;");
+ document.close();
+ }
+ &lt;/script&gt;
+&lt;/head&gt;
+
+&lt;body onload="newContent();"&gt;
+ &lt;p&gt;Some original document content.&lt;/p&gt;
+&lt;/body&gt;
+
+&lt;/html&gt;
+
+</pre>
+
+<h2 id="מפרט">מפרט</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName("HTML WHATWG", "#dom-document-write", "document.write(...)")}}</td>
+ <td>{{Spec2("HTML WHATWG")}}</td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td>{{SpecName("DOM2 HTML", "html.html#ID-75233634", "document.write(...)")}}</td>
+ <td>{{Spec2("DOM2 HTML")}}</td>
+ <td> </td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="תאימות_דפדפן">תאימות דפדפן</h2>
+
+
+
+<p>{{Compat("api.Document.write")}}</p>
+
+<h2 id="ראה_גם">ראה גם</h2>
+
+<ul>
+ <li>{{ domxref("element.innerHTML") }}</li>
+ <li>{{ domxref("document.createElement()") }}</li>
+</ul>