target phase
The middle phase of event propagation, in which listeners registered directly on the event's target element run.
In more detail
Listeners on the target run whether or not they were registered for the capturing phase. After the target phase, events that bubble continue upward.
Related terms
- capturing phase — The first phase of event propagation, in which the event travels down from the window through each ancestor toward the target.
- event bubbling — The way an event on an element also triggers handlers on its parent elements, one level at a time up the tree.
- event.target — The event property holding the element where the event actually started, such as the icon inside a button that was clicked.
Taught in
- Event Phases: Capturing, Target And Bubbling Demystified — Frontend Architecture & Web Platform