June 2025
Beginner
817 pages
31h 30m
English
Based on what you know so far, you register an event handler for a specific event and target element that you want to monitor and respond to. If the corresponding event occurs on the target element, the event handler will be triggered and executed. However, this description of the event flow is a bit vague. For this reason, we’ll briefly describe the event flow at this point, that is, how an event moves through the DOM tree when an event gets triggered. This event flow is also referred to as event propagation and takes place in three phases:
Capturing phaseThe event descends from the topmost document node in the DOM tree to the target element of the event. The phase starts with the intercepting handlers ...
Read now
Unlock full access