From 1109132f09d75da9a28b649c7677bb6ce07c40c0 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:45 -0500 Subject: initial commit --- files/he/web/api/document/write/index.html | 82 ++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 files/he/web/api/document/write/index.html (limited to 'files/he/web/api/document/write') 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 +--- +
{{ ApiRef("DOM") }}
+ +

()Document.write - כותב מחרוזת טקסט אל גוף מסמך HTML.

+ +

תחביר

+ +
document.write(markup);
+
+ +

פרמטרים

+ +
+
markup
+
מחרוזת המכילה את הטקסט שיופיע במסמך.
+
+ +

דוגמה

+ +
<html>
+
+<head>
+  <title>write example</title>
+
+  <script>
+    function newContent() {
+      alert("load new content");
+      document.open();
+      document.write("<h1>Out with the old - in with the new!</h1>");
+      document.close();
+    }
+  </script>
+</head>
+
+<body onload="newContent();">
+  <p>Some original document content.</p>
+</body>
+
+</html>
+
+
+ +

מפרט

+ + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("HTML WHATWG", "#dom-document-write", "document.write(...)")}}{{Spec2("HTML WHATWG")}} 
{{SpecName("DOM2 HTML", "html.html#ID-75233634", "document.write(...)")}}{{Spec2("DOM2 HTML")}} 
+ +

תאימות דפדפן

+ + + +

{{Compat("api.Document.write")}}

+ +

ראה גם

+ + -- cgit v1.2.3-54-g00ecf