September 2024
Beginner to intermediate
985 pages
35h 37m
English
Whenever an event is triggered, it goes through several event phases. As a JavaScript developer, it’s important for you to understand what these phases are and how they’re related to event triggering.
Basically, the following three phases are distinguished with regard to the event flow:
Capturing phaseIn this phase, the event "descends" from the top node in the DOM tree (the document node) down to the element for which the event was triggered, the target element (see Figure 6.4).
Target phaseIn this phase, the event is triggered at the target element.
Bubbling phaseIn this phase, the event "rises" from the target element in the DOM tree back up to the document ...
Read now
Unlock full access