Académique Documents
Professionnel Documents
Culture Documents
(événements)
J AVA S C R I P T (Programmation Internet) V O L . I I I
objet.addEventListener(eventType, listenerFunction)
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
Équivalent de :
objet.removeEventListener(eventType, listenerFunc-
tion)
<script type="text/javascript">
function disp(event) {
console.log(event);
}
</script>
Exécution :
Cliquez ici.
Yandex :
<script type="text/javascript">
function disp(event) {
console.log(event);
}
</script>
</head>
<body onkeyup="disp(event)">
Tapez des touches du clavier.
</body>
Exécution :
Animation :
Canvas :
Clipboard :
Control :
DOM Mutation :
Device :
deviceorientation , devicemotion
Drag / drop :
Geolocation :
getCurrentPosition , watchPosition
Keyboard :
Load :
Media :
Mouse :
Notification :
requestPermission
Parse :
Pointer :
Script :
Timer :
Window :
window.close
XHR :
<script type="text/javascript">
let t= "" ;
function codeUNICODE(event) {
t += event.keyCode + " | ";
console.log(t);
}
</script>
Quelques « MouseEvents » :
[100…109]
100: "onlanguagechange"
101: "onmessage"
102: "onmessageerror"
103: "onoffline"
104: "ononline"
105: "onpagehide"
106: "onpageshow"
107: "onpopstate"
108: "onstorage"
109: "onunload"
length: 110
Avec YANDEX :
Document {…}
...
1er onabort:(...)
2e onauxclick:(...)
3e onbeforecopy:(...)
4e onbeforecut:(...)
5e onbeforepaste:(...)
6e onblur:(...)
7e oncancel:(...)
8e oncanplay:(...)
9e oncanplaythrough:(...)
10e onchange:(...)
11e onclick:(...)
Les Événemets (Events) 26 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
12e onclose:(...)
13e oncontextmenu:(...)
14e oncopy:(...)
15e oncuechange:(...)
16e oncut:(...)
17e ondblclick:(...)
18e ondrag:(...)
19e ondragend:(...)
20e ondragenter:(...)
21e ondragleave:(...)
22e ondragover:(...)
23e ondragstart:(...)
24e ondrop:(...)
25e ondurationchange:(...)
26e onemptied:(...)
27e onended:(...)
28e onerror:(...)
29e onfocus:(...)
30e ongotpointercapture:(...)
31e oninput:(...)
32e oninvalid:(...)
33e onkeydown:(...)
34e onkeypress:(...)
35e onkeyup:(...)
36e onload:(...)
37e onloadeddata:(...)
38e onloadedmetadata:(...)
39e onloadstart:(...)
40e onlostpointercapture:(...)
41e onmousedown:(...)
42e onmouseenter:(...)
43e onmouseleave:(...)
44e onmousemove:(...)
45e onmouseout:(...)
46e onmouseover:(...)
47e onmouseup:(...)
48e onmousewheel:(...)
49e onpaste:(...)
...
onabort: Getter & Setter
onafterscriptexecute: Getter & Setter
onanimationcancel: Getter & Setter
onanimationend: Getter & Setter
onanimationiteration: Getter & Setter
onanimationstart: Getter & Setter
onauxclick: Getter & Setter
onbeforescriptexecute: Getter & Setter
onblur: Getter & Setter
oncanplay: Getter & Setter
oncanplaythrough: Getter & Setter
onchange: Getter & Setter
onclick: Getter & Setter
onclose: Getter & Setter
oncontextmenu: Getter & Setter
oncopy: Getter & Setter
oncut: Getter & Setter
ondblclick: Getter & Setter
ondrag: Getter & Setter
ondragend: Getter & Setter
ondragenter: Getter & Setter
ondragexit: Getter & Setter
ondragleave: Getter & Setter
ondragover: Getter & Setter
ondragstart: Getter & Setter
ondrop: Getter & Setter
ondurationchange: Getter & Setter
Les Événemets (Events) 29 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
onemptied: Getter & Setter
onended: Getter & Setter
onerror: Getter & Setter
onfocus: Getter & Setter
ongotpointercapture: Getter & Setter
oninput: Getter & Setter
oninvalid: Getter & Setter
onkeydown: Getter & Setter
onkeypress: Getter & Setter
onkeyup: Getter & Setter
onload: Getter & Setter
onloadeddata: Getter & Setter
onloadedmetadata: Getter & Setter
onloadend: Getter & Setter
onloadstart: Getter & Setter
onlostpointercapture: Getter & Setter
onmousedown: Getter & Setter
onmouseenter: Getter & Setter
onmouseleave: Getter & Setter
onmousemove: Getter & Setter
onmouseout: Getter & Setter
onmouseover: Getter & Setter
onmouseup: Getter & Setter
onmozfullscreenchange: Getter & Setter
onmozfullscreenerror: Getter & Setter
onpaste: Getter & Setter
onpause: Getter & Setter
onplay: Getter & Setter
onplaying: Getter & Setter
onpointercancel: Getter & Setter
onpointerdown: Getter & Setter
onpointerenter: Getter & Setter
onpointerleave: Getter & Setter
onpointerlockchange: Getter & Setter
onpointerlockerror: Getter & Setter
onpointermove: Getter & Setter
onpointerout: Getter & Setter
onpointerover: Getter & Setter
onpointerup: Getter & Setter
onprogress: Getter & Setter
Les Événemets (Events) 30 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
onratechange: Getter & Setter
onreadystatechange: Getter & Setter
onreset: Getter & Setter
onresize: Getter & Setter
onscroll: Getter & Setter
onseeked: Getter & Setter
onseeking: Getter & Setter
onselect: Getter & Setter
onselectionchange: Getter & Setter
onselectstart: Getter & Setter
onshow: Getter & Setter
onstalled: Getter & Setter
onsubmit: Getter & Setter
onsuspend: Getter & Setter
ontimeupdate: Getter & Setter
ontoggle: Getter & Setter
ontransitioncancel: Getter & Setter
ontransitionend: Getter & Setter
ontransitionrun: Getter & Setter
ontransitionstart: Getter & Setter
onvisibilitychange: Getter & Setter
onvolumechange: Getter & Setter
onwaiting: Getter & Setter
onwebkitanimationend: Getter & Setter
onwebkitanimationiteration: Getter & Setter
onwebkitanimationstart: Getter & Setter
onwebkittransitionend: Getter & Setter
onwheel: Getter & Setter
...
Avec FIREFOX :
Les Événemets (Events) 31 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
...
onabort: null
onafterscriptexecute: null
onanimationcancel: null
onanimationend: null
onanimationiteration: null
onanimationstart: null
onauxclick: null
onbeforescriptexecute: null
onblur: null
oncanplay: null
oncanplaythrough: null
onchange: null
onclick: null
onclose: null
oncontextmenu: null
oncopy: null
oncut: null
ondblclick: null
ondrag: null
ondragend: null
ondragenter: null
ondragexit: null
ondragleave: null
ondragover: null
ondragstart: null
ondrop: null
ondurationchange: null
onemptied: null
onended: null
onerror: null
onfocus: null
ongotpointercapture: null
oninput: null
oninvalid: null
onkeydown: null
onkeypress: null
onkeyup: null
onload: null
Les Événemets (Events) 32 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
onloadeddata: null
onloadedmetadata: null
onloadend: null
onloadstart: null
onlostpointercapture: null
onmousedown: null
onmouseenter: null
onmouseleave: null
onmousemove: null
onmouseout: null
onmouseover: null
onmouseup: null
onmozfullscreenchange: null
onmozfullscreenerror: null
onpaste: null
onpause: null
onplay: null
onplaying: null
onpointercancel: null
onpointerdown: null
onpointerenter: null
onpointerleave: null
onpointerlockchange: null
onpointerlockerror: null
onpointermove: null
onpointerout: null
onpointerover: null
onpointerup: null
onprogress: null
onratechange: null
onreadystatechange: null
onreset: null
onresize: null
onscroll: null
onseeked: null
onseeking: null
onselect: null
onselectionchange: null
onselectstart: null
onshow: null
Les Événemets (Events) 33 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
onstalled: null
onsubmit: null
onsuspend: null
ontimeupdate: null
ontoggle: null
ontransitioncancel: null
ontransitionend: null
ontransitionrun: null
ontransitionstart: null
onvisibilitychange: null
onvolumechange: null
onwaiting: null
onwebkitanimationend: null
onwebkitanimationiteration: null
onwebkitanimationstart: null
onwebkittransitionend: null
onwheel: null
...
Avec YANDEX :
document.__proto__
HTMLDocument {constructor: ƒ, Sym-
bol(Symbol.toStringTag): "HTMLDocument"}
1er onabort:(...)
2e onauxclick:(...)
3e onbeforecopy:(...)
4e onbeforecut:(...)
5e onbeforepaste:(...)
6e onblur:(...)
7e oncancel:(...)
8e oncanplay:(...)
9e oncanplaythrough:(...)
Les Événemets (Events) 34 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
10e onchange:(...)
11e onclick:(...)
12e onclose:(...)
13e oncontextmenu:(...)
14e oncopy:(...)
15e oncuechange:(...)
16e oncut:(...)
17e ondblclick:(...)
18e ondrag:(...)
19e ondragend:(...)
20e ondragenter:(...)
21e ondragleave:(...)
22e ondragover:(...)
23e ondragstart:(...)
24e ondrop:(...)
25e ondurationchange:(...)
26e onemptied:(...)
27e onended:(...)
28e onerror:(...)
29e onfocus:(...)
30e ongotpointercapture:(...)
31e oninput:(...)
32e oninvalid:(...)
33e onkeydown:(...)
34e onkeypress:(...)
35e onkeyup:(...)
36e onload:(...)
37e onloadeddata:(...)
38e onloadedmetadata:(...)
39e onloadstart:(...)
40e onlostpointercapture:(...)
41e onmousedown:(...)
42e onmouseenter:(...)
43e onmouseleave:(...)
44e onmousemove:(...)
45e onmouseout:(...)
46e onmouseover:(...)
47e onmouseup:(...)
48e onmousewheel:(...)
Les Événemets (Events) 35 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
49e onpaste:(...)
50e onpause:(...)
51e onplay:(...)
52e onplaying:(...)
53e onpointercancel:(...)
54e onpointerdown:(...)
55e onpointerenter:(...)
56e onpointerleave:(...)
57e onpointerlockchange:(...)
58e onpointerlockerror:(...)
59e onpointermove:(...)
60e onpointerout:(...)
61e onpointerover:(...)
62e onpointerup:(...)
63e onprogress:(...)
64e onratechange:(...)
65e onreadystatechange:(...)
66e onreset:(...)
67e onresize:(...)
68e onscroll:(...)
69e onsearch:(...)
70e onseeked:(...)
71e onseeking:(...)
72e onselect:(...)
73e onselectionchange:(...)
74e onselectstart:(...)
75e onstalled:(...)
76e onsubmit:(...)
77e onsuspend:(...)
78e ontimeupdate:(...)
79e ontoggle:(...)
80e onvisibilitychange:(...)
81e onvolumechange:(...)
82e onwaiting:(...)
83e onwebkitfullscreenchange:(...)
84e onwebkitfullscreenerror:(...)
85e onwheel:(...)
Avec FIREFOX :
document.__proto__
Avec YANDEX :
document.__proto__.__proto__
Document {…}
1er onabort:(...)
2e onauxclick:(...)
3e onbeforecopy:(...)
4e onbeforecut:(...)
5e onbeforepaste:(...)
6e onblur:(...)
7e oncancel:(...)
8e oncanplay:(...)
9e oncanplaythrough:(...)
10e onchange:(...)
Les Événemets (Events) 37 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
11e onclick:(...)
12e onclose:(...)
13e oncontextmenu:(...)
14e oncopy:(...)
15e oncuechange:(...)
16e oncut:(...)
17e ondblclick:(...)
18e ondrag:(...)
19e ondragend:(...)
20e ondragenter:(...)
21e ondragleave:(...)
22e ondragover:(...)
23e ondragstart:(...)
24e ondrop:(...)
25e ondurationchange:(...)
26e onemptied:(...)
27e onended:(...)
28e onerror:(...)
29e onfocus:(...)
30e ongotpointercapture:(...)
31e oninput:(...)
32e oninvalid:(...)
33e onkeydown:(...)
34e onkeypress:(...)
35e onkeyup:(...)
36e onload:(...)
37e onloadeddata:(...)
38e onloadedmetadata:(...)
39e onloadstart:(...)
40e onlostpointercapture:(...)
41e onmousedown:(...)
42e onmouseenter:(...)
43e onmouseleave:(...)
44e onmousemove:(...)
45e onmouseout:(...)
46e onmouseover:(...)
47e onmouseup:(...)
48e onmousewheel:(...)
Avec FIREFOX :
Animation :
Canvas :
Clipboard :
Control :
DOM Mutation :
deviceorientation , devicemotion
Drag / drop :
Geolocation :
getCurrentPosition , watchPosition
Keyboard :
Load :
Media :
Mouse :
requestPermission
Parse :
Pointer :
Script :
Timer :
Touch :
Window :
window.close
<script type="text/javascript">
function disp(event) {
console.log(event);
console.log(“==========”);
console.log(Object.getOwnPropertyDescriptors(event));
}
</script>
</head>
<body onmouseup="disp(event)">
Cliquez ici.
</body>
Avec YANDEX :
Cliquez ici.
altKey: false
bubbles: true
button: 0
buttons: 0
cancelBubble: false
cancelable: true
clientX: 98
clientY: 100
composed: true
ctrlKey: false
currentTarget: null
defaultPrevented: false
detail: 1
eventPhase: 0
fromElement: null
isTrusted: true
layerX: 98
layerY: 100
metaKey: false
movementX: 0
movementY: 0
offsetX: 90
offsetY: 92
pageX: 98
pageY: 100
path: (4) [body, html, document, Window]
relatedTarget: null
returnValue: true
screenX: 182
screenY: 183
shiftKey: false
sourceCapabilities: InputDeviceCapabilities {fire-
sTouchEvents: false
}
srcElement: body
target: body
timeStamp: 2275.995
toElement: body
type: "mouseup"
view: Window {stop: ƒ, open: ƒ, alert: ƒ, confirm: ƒ,
prompt: ƒ, …}
Les Événemets (Events) 52 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
which: 1
x: 98
y: 100
__proto__: MouseEvent
{isTrusted: {…}}
isTrusted:{set: undefined, enumerable: true, configura-
ble: false, get: ƒ}
__proto__:Object
Avec FIREfOX :
mouseup
altKey: false
bubbles: true
button: 0
buttons: 0
cancelBubble: false
cancelable: true
clientX: 42
clientY: 20
composed: true
ctrlKey: false
currentTarget: null
defaultPrevented: false
detail: 1
eventPhase: 0
explicitOriginalTarget: #text "
Cliquez ici.
Les Événemets (Events) 53 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
"
isTrusted: true
layerX: 42
layerY: 20
metaKey: false
movementX: 42
movementY: 20
mozInputSource: 1
mozPressure: 0
offsetX: 0
offsetY: 0
originalTarget: <body onmouseup="disp(event)">
pageX: 42
pageY: 20
rangeOffset: 0
rangeParent: null
region: ""
relatedTarget: null
screenX: 708
screenY: 118
shiftKey: false
target: <body onmouseup="disp(event)">
timeStamp: 30361.27132684458
type: "mouseup"
view: Window file:///F:/DADET/PROGS/test.html
which: 1
x: 42
y: 20
__proto__: MouseEventPrototype { initMouseEvent: in-
itMouseEvent(), getModifierState: getModifierState(), in-
itNSMouseEvent: initNSMouseEvent(), … }
__proto__: Object { … }
<script type="text/javascript">
function disp(event) {
console.log(event);
}
</script>
</head>
<body onkeyup="disp(event)">
Cliquez ici.
</body>
Exécution :
<html>
Les Événemets (Events) 55 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
<head>
<script type="text/javascript">
function codeUNICODE(event) {
console.log(event.keyCode)
}
</script>
</head>
Exécution :
isTrusted * true
getModifierState * function getModifierState()
initKeyboardEvent * function initKeyboardEvent()
initKeyEvent * function initKeyEvent()
charCode * 0
keyCode * 68
altKey * false
ctrlKey * false
shiftKey * false
metaKey * false
location * 0
repeat * false
isComposing * false
key * d
code * KeyD
DOM_KEY_LOCATION_STANDARD * 0
DOM_KEY_LOCATION_LEFT * 1
DOM_KEY_LOCATION_RIGHT * 2
DOM_KEY_LOCATION_NUMPAD * 3
Les Événemets (Events) 56 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
DOM_VK_CANCEL * 3
DOM_VK_HELP * 6
DOM_VK_BACK_SPACE * 8
DOM_VK_TAB * 9
DOM_VK_CLEAR * 12
DOM_VK_RETURN * 13
DOM_VK_SHIFT * 16
DOM_VK_CONTROL * 17
DOM_VK_ALT * 18
DOM_VK_PAUSE * 19
DOM_VK_CAPS_LOCK * 20
DOM_VK_KANA * 21
DOM_VK_HANGUL * 21
DOM_VK_EISU * 22
DOM_VK_JUNJA * 23
DOM_VK_FINAL * 24
DOM_VK_HANJA * 25
DOM_VK_KANJI * 25
DOM_VK_ESCAPE * 27
DOM_VK_CONVERT * 28
DOM_VK_NONCONVERT * 29
DOM_VK_ACCEPT * 30
DOM_VK_MODECHANGE * 31
DOM_VK_SPACE * 32
DOM_VK_PAGE_UP * 33
DOM_VK_PAGE_DOWN * 34
DOM_VK_END * 35
DOM_VK_HOME * 36
DOM_VK_LEFT * 37
DOM_VK_UP * 38
DOM_VK_RIGHT * 39
DOM_VK_DOWN * 40
DOM_VK_SELECT * 41
DOM_VK_PRINT * 42
DOM_VK_EXECUTE * 43
DOM_VK_PRINTSCREEN * 44
DOM_VK_INSERT * 45
DOM_VK_DELETE * 46
DOM_VK_0 * 48
DOM_VK_1 * 49
DOM_VK_2 * 50
DOM_VK_3 * 51
DOM_VK_4 * 52
DOM_VK_5 * 53
Les Événemets (Events) 57 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
DOM_VK_6 * 54
DOM_VK_7 * 55
DOM_VK_8 * 56
DOM_VK_9 * 57
DOM_VK_COLON * 58
DOM_VK_SEMICOLON * 59
DOM_VK_LESS_THAN * 60
DOM_VK_EQUALS * 61
DOM_VK_GREATER_THAN * 62
DOM_VK_QUESTION_MARK * 63
DOM_VK_AT * 64
DOM_VK_A * 65
DOM_VK_B * 66
DOM_VK_C * 67
DOM_VK_D * 68
DOM_VK_E * 69
DOM_VK_F * 70
DOM_VK_G * 71
DOM_VK_H * 72
DOM_VK_I * 73
DOM_VK_J * 74
DOM_VK_K * 75
DOM_VK_L * 76
DOM_VK_M * 77
DOM_VK_N * 78
DOM_VK_O * 79
DOM_VK_P * 80
DOM_VK_Q * 81
DOM_VK_R * 82
DOM_VK_S * 83
DOM_VK_T * 84
DOM_VK_U * 85
DOM_VK_V * 86
DOM_VK_W * 87
DOM_VK_X * 88
DOM_VK_Y * 89
DOM_VK_Z * 90
DOM_VK_WIN * 91
DOM_VK_CONTEXT_MENU * 93
DOM_VK_SLEEP * 95
DOM_VK_NUMPAD0 * 96
DOM_VK_NUMPAD1 * 97
DOM_VK_NUMPAD2 * 98
DOM_VK_NUMPAD3 * 99
Les Événemets (Events) 58 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
DOM_VK_NUMPAD4 * 100
DOM_VK_NUMPAD5 * 101
DOM_VK_NUMPAD6 * 102
DOM_VK_NUMPAD7 * 103
DOM_VK_NUMPAD8 * 104
DOM_VK_NUMPAD9 * 105
DOM_VK_MULTIPLY * 106
DOM_VK_ADD * 107
DOM_VK_SEPARATOR * 108
DOM_VK_SUBTRACT * 109
DOM_VK_DECIMAL * 110
DOM_VK_DIVIDE * 111
DOM_VK_F1 * 112
DOM_VK_F2 * 113
DOM_VK_F3 * 114
DOM_VK_F4 * 115
DOM_VK_F5 * 116
DOM_VK_F6 * 117
DOM_VK_F7 * 118
DOM_VK_F8 * 119
DOM_VK_F9 * 120
DOM_VK_F10 * 121
DOM_VK_F11 * 122
DOM_VK_F12 * 123
DOM_VK_F13 * 124
DOM_VK_F14 * 125
DOM_VK_F15 * 126
DOM_VK_F16 * 127
DOM_VK_F17 * 128
DOM_VK_F18 * 129
DOM_VK_F19 * 130
DOM_VK_F20 * 131
DOM_VK_F21 * 132
DOM_VK_F22 * 133
DOM_VK_F23 * 134
DOM_VK_F24 * 135
DOM_VK_NUM_LOCK * 144
DOM_VK_SCROLL_LOCK * 145
DOM_VK_WIN_OEM_FJ_JISHO * 146
DOM_VK_WIN_OEM_FJ_MASSHOU * 147
DOM_VK_WIN_OEM_FJ_TOUROKU * 148
DOM_VK_WIN_OEM_FJ_LOYA * 149
DOM_VK_WIN_OEM_FJ_ROYA * 150
DOM_VK_CIRCUMFLEX * 160
Les Événemets (Events) 59 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
DOM_VK_EXCLAMATION * 161
DOM_VK_DOUBLE_QUOTE * 162
DOM_VK_HASH * 163
DOM_VK_DOLLAR * 164
DOM_VK_PERCENT * 165
DOM_VK_AMPERSAND * 166
DOM_VK_UNDERSCORE * 167
DOM_VK_OPEN_PAREN * 168
DOM_VK_CLOSE_PAREN * 169
DOM_VK_ASTERISK * 170
DOM_VK_PLUS * 171
DOM_VK_PIPE * 172
DOM_VK_HYPHEN_MINUS * 173
DOM_VK_OPEN_CURLY_BRACKET * 174
DOM_VK_CLOSE_CURLY_BRACKET * 175
DOM_VK_TILDE * 176
DOM_VK_VOLUME_MUTE * 181
DOM_VK_VOLUME_DOWN * 182
DOM_VK_VOLUME_UP * 183
DOM_VK_COMMA * 188
DOM_VK_PERIOD * 190
DOM_VK_SLASH * 191
DOM_VK_BACK_QUOTE * 192
DOM_VK_OPEN_BRACKET * 219
DOM_VK_BACK_SLASH * 220
DOM_VK_CLOSE_BRACKET * 221
DOM_VK_QUOTE * 222
DOM_VK_META * 224
OM_VK_ALTGR * 225
DOM_VK_WIN_ICO_HELP * 227
DOM_VK_WIN_ICO_00 * 228
DOM_VK_WIN_ICO_CLEAR * 230
DOM_VK_WIN_OEM_RESET * 233
DOM_VK_WIN_OEM_JUMP * 234
DOM_VK_WIN_OEM_PA1 * 235
DOM_VK_WIN_OEM_PA2 * 236
DOM_VK_WIN_OEM_PA3 * 237
DOM_VK_WIN_OEM_WSCTRL * 238
DOM_VK_WIN_OEM_CUSEL * 239
DOM_VK_WIN_OEM_ATTN * 240
DOM_VK_WIN_OEM_FINISH * 241
DOM_VK_WIN_OEM_COPY * 242
DOM_VK_WIN_OEM_AUTO * 243
DOM_VK_WIN_OEM_ENLW * 244
Les Événemets (Events) 60 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
DOM_VK_WIN_OEM_BACKTAB * 245
DOM_VK_ATTN * 246
DOM_VK_CRSEL * 247
DOM_VK_EXSEL * 248
DOM_VK_EREOF * 249
DOM_VK_PLAY * 250
DOM_VK_ZOOM * 251
DOM_VK_PA1 * 253
DOM_VK_WIN_OEM_CLEAR * 254
initUIEvent * function initUIEvent()
view * [object Window]
detail * 0
layerX * 0
layerY * 0
pageX * 0
pageY * 0
which * 68
rangeParent * [object Text]
rangeOffset * 36
SCROLL_PAGE_UP * -32768
SCROLL_PAGE_DOWN * 32768
stopPropagation * function stopPropagation()
stopImmediatePropagation * function stopImmediatePropaga-
tion()
preventDefault * function preventDefault()
initEvent * function initEvent()
getPreventDefault * function getPreventDefault()
type * keyup
target * [object HTMLBodyElement]
currentTarget * [object HTMLBodyElement]
eventPhase * 2
bubbles * true
cancelable * true
defaultPrevented * false
composed * true
timeStamp * 26858.731007798015
cancelBubble * false
originalTarget * [object HTMLBodyElement]
explicitOriginalTarget * [object HTMLBodyElement]
NONE * 0
CAPTURING_PHASE * 1
AT_TARGET * 2
BUBBLING_PHASE * 3
ALT_MASK * 1
Les Événemets (Events) 61 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
CONTROL_MASK * 2
SHIFT_MASK * 4
META_MASK * 8
isTrusted * true
getModifierState * function getModifierState()
initKeyboardEvent * function initKeyboardEvent()
initKeyEvent * function initKeyEvent()
charCode * 0
keyCode * 9
altKey * false
ctrlKey * false
shiftKey * false
metaKey * false
location * 0
repeat * false
isComposing * false
key * Tab
code * Tab
DOM_KEY_LOCATION_STANDARD * 0
DOM_KEY_LOCATION_LEFT * 1
DOM_KEY_LOCATION_RIGHT * 2
DOM_KEY_LOCATION_NUMPAD * 3
DOM_VK_CANCEL * 3
DOM_VK_HELP * 6
DOM_VK_BACK_SPACE * 8
DOM_VK_TAB * 9
DOM_VK_CLEAR * 12
DOM_VK_RETURN * 13
DOM_VK_SHIFT * 16
DOM_VK_CONTROL * 17
DOM_VK_ALT * 18
DOM_VK_PAUSE * 19
DOM_VK_CAPS_LOCK * 20
DOM_VK_KANA * 21
DOM_VK_HANGUL * 21
DOM_VK_EISU * 22
DOM_VK_JUNJA * 23
DOM_VK_FINAL * 24
DOM_VK_HANJA * 25
DOM_VK_KANJI * 25
DOM_VK_ESCAPE * 27
DOM_VK_CONVERT * 28
DOM_VK_NONCONVERT * 29
DOM_VK_ACCEPT * 30
Les Événemets (Events) 62 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
DOM_VK_MODECHANGE * 31
DOM_VK_SPACE * 32
DOM_VK_PAGE_UP * 33
DOM_VK_PAGE_DOWN * 34
DOM_VK_END * 35
DOM_VK_HOME * 36
DOM_VK_LEFT * 37
DOM_VK_UP * 38
DOM_VK_RIGHT * 39
DOM_VK_DOWN * 40
DOM_VK_SELECT * 41
DOM_VK_PRINT * 42
DOM_VK_EXECUTE * 43
DOM_VK_PRINTSCREEN * 44
DOM_VK_INSERT * 45
DOM_VK_DELETE * 46
DOM_VK_0 * 48
DOM_VK_1 * 49
DOM_VK_2 * 50
DOM_VK_3 * 51
DOM_VK_4 * 52
DOM_VK_5 * 53
DOM_VK_6 * 54
DOM_VK_7 * 55
DOM_VK_8 * 56
DOM_VK_9 * 57
DOM_VK_COLON * 58
DOM_VK_SEMICOLON * 59
DOM_VK_LESS_THAN * 60
DOM_VK_EQUALS * 61
DOM_VK_GREATER_THAN * 62
DOM_VK_QUESTION_MARK * 63
DOM_VK_AT * 64
DOM_VK_A * 65
DOM_VK_B * 66
DOM_VK_C * 67
DOM_VK_D * 68
DOM_VK_E * 69
membres.html:5:20
DOM_VK_F * 70
DOM_VK_G * 71
DOM_VK_H * 72
DOM_VK_I * 73
DOM_VK_J * 74
Les Événemets (Events) 63 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
DOM_VK_K * 75
DOM_VK_L * 76
DOM_VK_M * 77
DOM_VK_N * 78
DOM_VK_O * 79
DOM_VK_P * 80
DOM_VK_Q * 81
DOM_VK_R * 82
DOM_VK_S * 83
DOM_VK_T * 84
DOM_VK_U * 85
DOM_VK_V * 86
DOM_VK_W * 87
DOM_VK_X * 88
DOM_VK_Y * 89
DOM_VK_Z * 90
DOM_VK_WIN * 91
DOM_VK_CONTEXT_MENU * 93
DOM_VK_SLEEP * 95
DOM_VK_NUMPAD0 * 96
DOM_VK_NUMPAD1 * 97
DOM_VK_NUMPAD2 * 98
DOM_VK_NUMPAD3 * 99
DOM_VK_NUMPAD4 * 100
DOM_VK_NUMPAD5 * 101
DOM_VK_NUMPAD6 * 102
DOM_VK_NUMPAD7 * 103
DOM_VK_NUMPAD8 * 104
DOM_VK_NUMPAD9 * 105
DOM_VK_MULTIPLY * 106
DOM_VK_ADD * 107
DOM_VK_SEPARATOR * 108
DOM_VK_SUBTRACT * 109
DOM_VK_DECIMAL * 110
DOM_VK_DIVIDE * 111
DOM_VK_F1 * 112
DOM_VK_F2 * 113
DOM_VK_F3 * 114
DOM_VK_F4 * 115
DOM_VK_F5 * 116
DOM_VK_F6 * 117
DOM_VK_F7 * 118
DOM_VK_F8 * 119
DOM_VK_F9 * 120
Les Événemets (Events) 64 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
DOM_VK_F10 * 121
DOM_VK_F11 * 122
DOM_VK_F12 * 123
DOM_VK_F13 * 124
DOM_VK_F14 * 125
DOM_VK_F15 * 126
DOM_VK_F16 * 127
DOM_VK_F17 * 128
DOM_VK_F18 * 129
DOM_VK_F19 * 130
DOM_VK_F20 * 131
DOM_VK_F21 * 132
DOM_VK_F22 * 133
DOM_VK_F23 * 134
DOM_VK_F24 * 135
DOM_VK_NUM_LOCK * 144
DOM_VK_SCROLL_LOCK * 145
DOM_VK_WIN_OEM_FJ_JISHO * 146
DOM_VK_WIN_OEM_FJ_MASSHOU * 147
DOM_VK_WIN_OEM_FJ_TOUROKU * 148
DOM_VK_WIN_OEM_FJ_LOYA * 149
DOM_VK_WIN_OEM_FJ_ROYA * 150
DOM_VK_CIRCUMFLEX * 160
DOM_VK_EXCLAMATION * 161
DOM_VK_DOUBLE_QUOTE * 162
DOM_VK_HASH * 163
DOM_VK_DOLLAR * 164
DOM_VK_PERCENT * 165
DOM_VK_AMPERSAND * 166
DOM_VK_UNDERSCORE * 167
DOM_VK_OPEN_PAREN * 168
DOM_VK_CLOSE_PAREN * 169
DOM_VK_ASTERISK * 170
DOM_VK_PLUS * 171
DOM_VK_PIPE * 172
DOM_VK_HYPHEN_MINUS * 173
DOM_VK_OPEN_CURLY_BRACKET * 174
DOM_VK_CLOSE_CURLY_BRACKET * 175
DOM_VK_TILDE * 176
DOM_VK_VOLUME_MUTE * 181
DOM_VK_VOLUME_DOWN * 182
DOM_VK_VOLUME_UP * 183
DOM_VK_COMMA * 188
DOM_VK_PERIOD * 190
Les Événemets (Events) 65 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
DOM_VK_SLASH * 191
DOM_VK_BACK_QUOTE * 192
DOM_VK_OPEN_BRACKET * 219
DOM_VK_BACK_SLASH * 220
DOM_VK_CLOSE_BRACKET * 221
DOM_VK_QUOTE * 222
DOM_VK_META * 224
DOM_VK_ALTGR * 225
DOM_VK_WIN_ICO_HELP * 227
DOM_VK_WIN_ICO_00 * 228
DOM_VK_WIN_ICO_CLEAR * 230
DOM_VK_WIN_OEM_RESET * 233
DOM_VK_WIN_OEM_JUMP * 234
DOM_VK_WIN_OEM_PA1 * 235
DOM_VK_WIN_OEM_PA2 * 236
DOM_VK_WIN_OEM_PA3 * 237
DOM_VK_WIN_OEM_WSCTRL * 238
DOM_VK_WIN_OEM_CUSEL * 239
DOM_VK_WIN_OEM_ATTN * 240
DOM_VK_WIN_OEM_FINISH * 241
DOM_VK_WIN_OEM_COPY * 242
DOM_VK_WIN_OEM_AUTO * 243
DOM_VK_WIN_OEM_ENLW * 244
DOM_VK_WIN_OEM_BACKTAB * 245
DOM_VK_ATTN * 246
DOM_VK_CRSEL * 247
DOM_VK_EXSEL * 248
DOM_VK_EREOF * 249
DOM_VK_PLAY * 250
DOM_VK_ZOOM * 251
DOM_VK_PA1 * 253
DOM_VK_WIN_OEM_CLEAR * 254
initUIEvent * function initUIEvent()
view * [object Window]
detail * 0
layerX * 0
layerY * 0
pageX * 0
pageY * 0
which * 9
rangeParent * [object Text]
rangeOffset * 36
SCROLL_PAGE_UP * -32768
SCROLL_PAGE_DOWN * 32768
Les Événemets (Events) 66 / 76 mercredi, 23. janvier 2019
J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-III
stopPropagation * function stopPropagation()
stopImmediatePropagation * function stopImmediatePropaga-
tion()
preventDefault * function preventDefault()
initEvent * function initEvent()
getPreventDefault * function getPreventDefault()
type * keyup
target * [object HTMLBodyElement]
currentTarget * [object HTMLBodyElement]
eventPhase * 2
bubbles * true
cancelable * true
defaultPrevented * false
composed * true
timeStamp * 38355.750550160956
cancelBubble * false
originalTarget * [object HTMLBodyElement]
explicitOriginalTarget * [object HTMLBodyElement]
NONE * 0
CAPTURING_PHASE * 1
AT_TARGET * 2
BUBBLING_PHASE * 3
ALT_MASK * 1
CONTROL_MASK * 2
SHIFT_MASK * 4
META_MASK * 8
Quelques « MouseEvents » :
<body onmouseup="codeUNICODE(event)">
Frappez des touches du clavier.
</body>
Exécution :
isTrusted * true
initMouseEvent * function initMouseEvent()
getModifierState * function getModifierState()
initNSMouseEvent * function initNSMouseEvent()
screenX * 261
screenY * 260
clientX * 106
clientY * 18
x * 106
y * 18
offsetX * 98
offsetY * 10
ctrlKey * false
shiftKey * false
altKey * false
metaKey * false
button * 0
buttons * 0
relatedTarget * null
region *
movementX * 106
movementY * 18
mozPressure * 0
mozInputSource * 1
MOZ_SOURCE_UNKNOWN * 0
MOZ_SOURCE_MOUSE * 1
MOZ_SOURCE_PEN * 2
MOZ_SOURCE_ERASER * 3
MOZ_SOURCE_CURSOR * 4
MOZ_SOURCE_TOUCH * 5
<script>
//Pointeur sur le PREMIER <div>
var vc = document.querySelector('div');
pc.addEventListener('mousedown',function(){
this.innerHTML = 'vous avez Mouse Down Ds < P >';
this.style.backgroundColor = 'red';
});
function oc(){
this.innerHTML = 'Le click a été savoureux !';
this.style.color = "red";
this.style.borderStyle = "dotted";
this.style.borderRadius = "7pt";
this.style.borderColor = "blue";
this.style.padding = "1em";
this.style.backgroundColor = "yellow";
this.style.width = "12em";
this.style.fontWeight = '900';
this.style.lineHeight = '3em';
}
</script>
Après manipulations :
<body>
<div id="idiv"class="cdiv">CLIQUEZ DROIT</div>
</body>
<script type="text/javascript">
document.addEventListener(
"contextmenu", d_cMenu, false);
function d_cMenu(e) {
e.preventDefault();
}
var newContextMenu=document.querySelector("#idiv");
newContextMenu.addEventListener(
"contextmenu",n_cMenu);
function n_cMenu() {
this.style.letterSpacing="2em";
this.innerHTML="Ds DIV";
}
Exécution :
CLIQUEZ DROIT
D s D I V
En quittant DIV :
<script type="text/javascript">
document.addEventListener("mousemove", mmeh, false);
function mmeh(m) {
console.log("***Screen = "+m.screenX + "," +
m.screenY+"\nBrowser = "+m.clientX + "," +
m.clientY);
}
</script>
Exécution :
***Screen = 119,666
Browser = 44,354
***Screen = 122,663
Browser = 47,351
***Screen = 124,656
Browser = 49,344
Mots-clés :
événement,event,changement d'état,environnement,event-listener,écoute
d’événement,écouteur d'événement,event-handler,gestionnaire
diasfb@mail2world.com
Autre Lecture :
https://www.scribd.com/document/374738470/Le-Plus-Grand-
Secret-de-La-Creation