aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/api/event/initevent/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pl/web/api/event/initevent/index.html')
-rw-r--r--files/pl/web/api/event/initevent/index.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/files/pl/web/api/event/initevent/index.html b/files/pl/web/api/event/initevent/index.html
new file mode 100644
index 0000000000..47af034ed8
--- /dev/null
+++ b/files/pl/web/api/event/initevent/index.html
@@ -0,0 +1,45 @@
+---
+title: event.initEvent
+slug: Web/API/Event/initEvent
+tags:
+ - DOM
+ - Dokumentacja_Gecko_DOM
+ - Gecko
+ - Wszystkie_kategorie
+translation_of: Web/API/Event/initEvent
+---
+<p>{{ ApiRef() }}</p>
+<h3 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h3>
+<p>Metoda służy do zainicjalizowania zdarzenia utworzonego za pomocą <a class="external" href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-document">interfejsu DocumentEvent</a></p>
+<h3 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h3>
+<pre class="eval">event.initKeyEvent(<i>type</i>,<i>bubbles</i>,<i>cancelable</i>)
+</pre>
+<h3 id="Parametry" name="Parametry">Parametry</h3>
+<dl>
+ <dt>
+ <code>type</code></dt>
+ <dd>
+ Typ zdarzenia.</dd>
+ <dt>
+ <code>bubbles</code></dt>
+ <dd>
+ Wartość logiczna wskazująca, czy zdarzenie ma bąbelkować czy nie (zob. <a href="pl/DOM/event.bubbles">bubbles</a>).</dd>
+ <dt>
+ <code>cancelable</code></dt>
+ <dd>
+ Wartość logiczna wskazująca, czy zdarzenie może zostać anulowane (zob. <a href="pl/DOM/event.cancelable">cancelable</a>).</dd>
+</dl>
+<h3 id="Przyk.C5.82ad" name="Przyk.C5.82ad">Przykład</h3>
+<pre>// utwórz zdarzenie kliknięcia, które bąbelkuje
+// i nie może być anulowane
+event.initEvent("click", true, false);
+</pre>
+<h3 id="Uwagi" name="Uwagi">Uwagi</h3>
+<p>Zdarzenia inicjalizowane w ten sposób muszą zostać utworzone za pomocą metody <a href="pl/DOM/document.createEvent">createEvent</a> interfejsu DocumentEvent. Metoda <b>initEvent</b> musi być wywołana by ustawić zdarzenie przed jego wywołaniem (za pomocą <a href="pl/DOM/element.dispatchEvent">dispatchEvent</a>).</p>
+<h3 id="Specyfikacja" name="Specyfikacja">Specyfikacja</h3>
+<p><a class="external" href="http://www.w3.org/TR/2001/WD-DOM-Level-3-Events-20010823/events.html#Events-Event-initEvent">initEvent</a></p>
+<p> </p>
+<p> </p>
+<div class="noinclude">
+  </div>
+<p>{{ languages( { "en": "en/DOM/event.initEvent", "es": "es/DOM/event.initEvent", "fr": "fr/DOM/event.initEvent", "ja": "ja/DOM/event.initEvent" } ) }}</p>