Más contenido relacionado
La actualidad más candente (13)
Similar a [SoftServe IT Academy] - JavaScript Events (20)
[SoftServe IT Academy] - JavaScript Events
- 2. Agenda
▪ Types of Events
▪ Registering Event Handlers
▪ Event Handler Argument
▪ Event Cancellation
▪ Bubbling
▪ Capturing
▪ References and sources
- 3. Types of Events
▪ onclick
▪ onmousedown, onmouseup,
▪ onmousemove, onmouseover,
onmouseout
<body>, <input>, <textarea>
▪ onkeydown
▪ onkeypress
▪ onkeyup
- 4. Types of Events
▪ onfocus, onblur
▪ onload, onunload, onresize
<form>, elements
▪ onreset, onsubmit
▪ onselect, onchange, onscroll
▪ HTML5 Events, Touchscreen
- 10. Event Handler Argument
▪ Any source
– type
– targer / srcElement
▪ Mouse
– button
– altKey, ctrlKey, shiftKey
– clientX, clientY
▪ Keyboard
– keyCode
- 12. Bubbling
▪ After an event triggers on the deepest
possible element, it then triggers on parents
in nesting order.