aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/api/mouseevent/initmouseevent/index.html
blob: e9de8046977e80baef7811db3362040664393cf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
---
title: event.initMouseEvent
slug: Web/API/Event/initMouseEvent
tags:
  - DOM
  - Dokumentacja_Gecko_DOM
  - Gecko
  - Wszystkie_kategorie
translation_of: Web/API/MouseEvent/initMouseEvent
---
<p>{{ ApiRef() }}</p>
<h3 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h3>
<p>Inicjuje zdarzenie myszy po jego utworzeniu (za pomocą metody <a href="pl/DOM/document.createEvent">createEvent</a> interfejsu <code>DocumentEvent</code>).</p>
<h3 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h3>
<pre class="eval"><i>event</i>.initMouseEvent(<i>type</i>,<i>canBubble</i>,<i>cancelable</i>,<i>view</i>,<i>detail</i>,<i>screenX</i>,<i>screenY</i>,<i>clientX</i>,<i>clientY</i>,<i>ctrlKey</i>,<i>altKey</i>,<i>shiftKey</i>,<i>metaKey</i>,<i>button</i>,<i>relatedTarget</i>);
</pre>
<dl>
 <dt>
  <code>type</code></dt>
 <dd>
  łańcuch znaków do ustawienia <a href="pl/DOM/event.type">typu</a> zdarzeń. Możliwe typy dla zdarzeń myszy: <code>click</code>, <code>mousedown</code>, <code>mouseup</code>, <code>mouseover</code>, <code>mousemove</code>, <code>mouseout</code>.</dd>
 <dt>
  <code>canBubble</code></dt>
 <dd>
  czy zdarzenie bąbelkuje. Ustawia wartość <a href="pl/DOM/event.bubbles">event.bubbles</a>.</dd>
 <dt>
  <code>cancelable</code></dt>
 <dd>
  czy domyślna akcja zdarzenia może być anulowana. Ustawia Ustawia wartość <a href="pl/DOM/event.cancelable">event.cancelable</a>.</dd>
 <dt>
  <code>view</code></dt>
 <dd>
  AbstractView zdarzenia. You should pass the <a href="pl/DOM/window">window</a> object here. Ustawia wartość <a href="pl/DOM/event.view">event.view</a>.</dd>
 <dt>
  <code>detail</code></dt>
 <dd>
  wartość licznika kliknięć myszą. Ustawia wartość <a href="pl/DOM/event.detail">event.detail</a>.</dd>
 <dt>
  <code>screenX</code></dt>
 <dd>
  współrzędna x względem ekranu. Ustawia wartość <a href="pl/DOM/event.screenX">event.screenX</a>.</dd>
 <dt>
  <code>screenY</code></dt>
 <dd>
  współrzędna y względem ekranu. Ustawia wartość <a href="pl/DOM/event.screenY">event.screenY</a>.</dd>
 <dt>
  <code>clientX</code></dt>
 <dd>
  współrzędna x w obszarze klienta. Ustawia wartość <a href="pl/DOM/event.clientX">event.clientX</a>.</dd>
 <dt>
  <code>clientY</code></dt>
 <dd>
  współrzędna y w obszarze klienta. Ustawia wartość <a href="pl/DOM/event.clientY">event.clientY</a>.</dd>
 <dt>
  <code>ctrlKey</code></dt>
 <dd>
  czy klawisz control był wciśnięty podczas zdarzenia. Ustawia wartość <a href="pl/DOM/event.ctrlKey">event.ctrlKey</a>.</dd>
 <dt>
  <code>altKey</code></dt>
 <dd>
  czy klawisz alt był wciśnięty podczas zdarzenia. Ustawia wartość <a href="pl/DOM/event.altKey">event.altKey</a>.</dd>
 <dt>
  <code>shiftKey</code></dt>
 <dd>
  czy klawisz shift był wciśnięty podczas zdarzenia. Ustawia wartość <a href="pl/DOM/event.shiftKey">event.shiftKey</a>.</dd>
 <dt>
  <code>metaKey</code></dt>
 <dd>
  czy klawisz meta był wciśnięty podczas zdarzenia. Ustawia wartość <a href="pl/DOM/event.metaKey">event.metaKey</a>.</dd>
 <dt>
  <code>button</code></dt>
 <dd>
  zdarzenie myszy <a href="pl/DOM/event.button">event.button</a>.</dd>
 <dt>
  <code>relatedTarget</code></dt>
 <dd>
  zdarzenie <a href="pl/DOM/event.relatedTarget">related EventTarget</a>. Stosowane tylko z kilkoma typami zdarzeń (np. <code>mouseover</code> i <code>mouseout</code>). W innych przypadkach, zwraca <code>null</code>.</dd>
</dl>
<h3 id="Przyk.C5.82ad" name="Przyk.C5.82ad">Przykład</h3>
<p> </p>
<h3 id="Specyfikacja" name="Specyfikacja">Specyfikacja</h3>
<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Event-initMouseEvent">DOM Level 2 Events: initMouseEvent</a></p>
<p> </p>
<div class="noinclude">
  </div>
<p>{{ languages( { "en": "en/DOM/event.initMouseEvent", "es": "es/DOM/event.initMouseEvent" } ) }}</p>