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:

  1. Capture phase: The main function is to capture interception events
  2. Target phase: at the end of the capture phase and the beginning of the bubble phase
  3. 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