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/hu/web/api/window/alert/index.html | 72 ++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 files/hu/web/api/window/alert/index.html (limited to 'files/hu/web/api/window/alert') diff --git a/files/hu/web/api/window/alert/index.html b/files/hu/web/api/window/alert/index.html new file mode 100644 index 0000000000..3861de7f10 --- /dev/null +++ b/files/hu/web/api/window/alert/index.html @@ -0,0 +1,72 @@ +--- +title: Window.alert() +slug: Web/API/Window/alert +tags: + - API + - DOM + - Függvény + - Referencia + - Window + - alert +translation_of: Web/API/Window/alert +--- +

{{ APIRef }}

+ +

A window.alert() függvény megjelenít egy alert ablakot a megadott opcionális szöveggel és egy OK gombbal.

+ +

Szintaxis

+ +
window.alert(uzenet);
+ +

Paraméterek

+ +
+
uzenet {{optional_inline}}
+
Az üzenet az a szöveg amit meg szeretnél jeleníteni az alert dobozban.
+
+ +

Példa

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

Mindkettő kimenete:

+ +

Image:AlertHelloWorld.png

+ +

Megjegyzések

+ +

Az alertet olyan helyeken kell használni, ahol nem szükséges visszajelzés a felhasználótól, de szeretnénk őt értesíteni valamiről.

+ +

The following text is shared between this article, DOM:window.prompt and DOM:window.confirm Ez egy modális ablak - megakadályozza a felhasználót, hogy elérje a felületet, amíg be nem zárja azt. Éppen ezért nem ajánlott a túlhasználata.

+ +

Specifikáció

+ + + + + + + + + + + + + + +
SpecifikációÁllapotMegjegyzés
{{SpecName('HTML WHATWG', 'timers-and-user-prompts.html#dom-alert', 'alert()')}}{{Spec2('HTML WHATWG')}}
+ +

Böngésző kompatibilitás

+ + + +

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

+ +

Lásd még

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