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/window/alert/index.html | 70 ++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 files/he/web/api/window/alert/index.html (limited to 'files/he/web/api/window/alert/index.html') 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 +--- +

{{ APIRef }}

+ +

Window.alert() - מציגה הודעת אזהרה עם תוכן וכפתור לאישור וסגירה.

+ +

תחביר

+ +
window.alert(message);
+ +

פרמטרים

+ +
+
message {{optional_inline}}
+
מחרוזת שתופיעה כגוף ההודעה בתיבת הדו-שיח של ההתראה.
+
+ +

דוגמאות

+ +
window.alert("Hello world!");
+alert("Hello world!");
+ +

שתי הדוגמאות מייצרות את ההודעה הבאה:

+ +

Image:AlertHelloWorld.png

+ +

הערות

+ +

 

+ +

תפקידן של תיבות ההתראה הינן להצגת הודעות שאינן דורשות תגובה מצד המשתמש, מלבד היכרות וקריאת ההודעה.

+ +

 

+ +

מפרט

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', 'timers-and-user-prompts.html#dom-alert', 'alert()')}}{{Spec2('HTML WHATWG')}} 
+ +

תאימות דפדפן

+ + + +

{{Compat("api.Window.alert")}}

+ +

ראה גם

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