aboutsummaryrefslogtreecommitdiff
path: root/files/he/web/api/window/alert
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/window/alert
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/window/alert')
-rw-r--r--files/he/web/api/window/alert/index.html70
1 files changed, 70 insertions, 0 deletions
diff --git a/files/he/web/api/window/alert/index.html b/files/he/web/api/window/alert/index.html
new file mode 100644
index 0000000000..0346b5f73a
--- /dev/null
+++ b/files/he/web/api/window/alert/index.html
@@ -0,0 +1,70 @@
+---
+title: Window.alert()
+slug: Web/API/Window/alert
+tags:
+ - אזהרה
+ - חלון הודעה
+ - פופ-אפ
+translation_of: Web/API/Window/alert
+---
+<p>{{ APIRef }}</p>
+
+<p><strong><code>Window.alert()</code></strong> - מציגה הודעת אזהרה עם תוכן וכפתור לאישור וסגירה.</p>
+
+<h2 id="Syntax" name="Syntax">תחביר</h2>
+
+<pre class="syntaxbox">window.alert(<em>message</em>);</pre>
+
+<h3 id="פרמטרים">פרמטרים</h3>
+
+<dl>
+ <dt><code>message</code> {{optional_inline}}</dt>
+ <dd>מחרוזת שתופיעה כגוף ההודעה בתיבת הדו-שיח של ההתראה.</dd>
+</dl>
+
+<h2 id="Example" name="Example">דוגמאות</h2>
+
+<pre class="brush: js">window.alert("Hello world!");
+alert("Hello world!");</pre>
+
+<p>שתי הדוגמאות מייצרות את ההודעה הבאה:</p>
+
+<p><img alt="Image:AlertHelloWorld.png" src="/files/130/AlertHelloWorld.png"></p>
+
+<h2 id="Notes" name="Notes">הערות</h2>
+
+<p> </p>
+
+<p>תפקידן של תיבות ההתראה הינן להצגת הודעות שאינן דורשות תגובה מצד המשתמש, מלבד היכרות וקריאת ההודעה.</p>
+
+<p> </p>
+
+<h2 id="Specification" name="Specification">מפרט</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', 'timers-and-user-prompts.html#dom-alert', 'alert()')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td> </td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="תאימות_דפדפן">תאימות דפדפן</h2>
+
+
+
+<p>{{Compat("api.Window.alert")}}</p>
+
+<h2 id="See_also" name="See_also">ראה גם</h2>
+
+<ul>
+ <li>{{domxref("window.confirm","confirm")}}</li>
+ <li>{{domxref("window.prompt","prompt")}}</li>
+</ul>