diff options
Diffstat (limited to 'files/ar/web/api/window/alert/index.html')
-rw-r--r-- | files/ar/web/api/window/alert/index.html | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/files/ar/web/api/window/alert/index.html b/files/ar/web/api/window/alert/index.html deleted file mode 100644 index 11041a50a9..0000000000 --- a/files/ar/web/api/window/alert/index.html +++ /dev/null @@ -1,77 +0,0 @@ ---- -title: Window.alert() -slug: Web/API/Window/alert -tags: - - تنبية - - تنبيه - - دالة تنبيه - - مستند HTML - - مصادر - - نافذة -translation_of: Web/API/Window/alert ---- -<p>{{ APIRef }}</p> - -<p>دالة التنبية ()Window.alert هي وظيفة تقوم بإظهار رسالة مخصصة مع زر حسناً.</p> - -<h2 id="Syntax" name="Syntax">بناء الجملة</h2> - -<pre class="syntaxbox notranslate">window.alert(<em>message</em>);</pre> - -<h3 id="خصائص">خصائص</h3> - -<dl> - <dt><code>message</code> {{optional_inline}}</dt> - <dt></dt> - <dd>يمكنك تمرير سلسلة نصية بين أقواس الدالة حتى يتم إظهارها من خلال نافذة التنبيه، أو كائن يتم تحويلة إلى نص ثم عرض محتواه.</dd> -</dl> - -<h2 id="Example" name="Example">مثال</h2> - -<pre class="brush: js notranslate">window.alert("مرحبا بالعالم!"); -alert("مرحبا بالعالم!");</pre> - -<p>كلاهما ينتج:</p> - -<p><img alt="Image:AlertHelloWorld.png" src="/files/130/AlertHelloWorld.png"></p> - -<h2 id="Notes" name="Notes">Notes</h2> - -<p>The alert dialog should be used for messages which do not require any response on the part of the user, other than the acknowledgement of the message.</p> - -<p><span class="comment">The following text is shared between this article, DOM:window.prompt and DOM:window.confirm</span> Dialog boxes are modal windows - they prevent the user from accessing the rest of the program's interface until the dialog box is closed. For this reason, you should not overuse any function that creates a dialog box (or modal window).</p> - -<h2 id="Specification">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="Browser_compatibility">Browser compatibility</h2> - - - -<p>{{Compat("api.Window.alert")}}</p> - -<h2 id="See_also" name="See_also">See also</h2> - -<ul> - <li>{{domxref("window.confirm","confirm")}}</li> - <li>{{domxref("window.prompt","prompt")}}</li> - <li>For <a href="/en-US/docs/Chrome" title="/en-US/docs/Chrome">Mozilla Chrome</a> see {{ifmethod("nsIPromptService","alert")}} and {{ifmethod("nsIPromptService","alertCheck")}}</li> -</ul> - -<div id="gtx-trans" style="position: absolute; left: 504px; top: 245px;"> -<div class="gtx-trans-icon"></div> -</div> |