What is the event flow in the DOM
Event flow: Used to describe the order in which data is received from the page.
The three phases of the event flow:
- Capture phase: The main function is to capture interception events
- Target phase: at the end of the capture phase and the beginning of the bubble phase
- Bubble stage: The main function is to return the result of the target element binding event execution to the browser and handle differences between browsers