diff options
Diffstat (limited to 'files/he/web/api/window/alert/index.html')
-rw-r--r-- | files/he/web/api/window/alert/index.html | 70 |
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> |