Event
↔ Interface Object to rep actions, autogen by DOM Node
after Signal Trigger
Sources: Introduction to events - Learn web development | MDN websitesetup.org/javascript
Event
s are not part of JS Library & is provided to Browser Runtime via Web API
Node.js has its own model and implementation for events
Signal
Something that happened. Mouse click/move, etc
Event Listener
function to await Event
& on Signal Trigger, call Event Handler
Event Handler
Callback to run in response to Event
Signal
Event Delegation
(Design Pattern) to attach Event Listener to common parent to utilize Bubbling Phase to apply Event
to multiple Element
References
Target Phase
↔Event
handle at target; executes Callback Functions attach to Event ListenerCapturing Phase
↔Event
propagates down, fromDocument
Root to target Element, pass through every Parent ElementBubbling Phase
↔Event
propagate back up toDocument
Root, pass through Parent ElementEventTarget
↔ Top-level Abstract Class Interface extends most objects with ability to receiveEvent
s or add Event ListenerEvent Delegation
↔ (Design Pattern) to attach Event Listener to common parent to utilize Bubbling Phase to applyEvent
to multiple ElementEvent Handler
↔ Callback to run in response toEvent
SignalWebsocket Event
↔Event
from websocket can be listened to via addEventListener()Event Listener
↔ function to awaitEvent
& on Signal Trigger, call Event Handler