Capturing browser events

The life cycle of an event consists of the capture, target, and bubble phases. The following diagrams show the direction of an event flow for the capture and bubble phases.

The following diagram shows the direction of an event flow during its capturing phase. Observe that the event flows from a parent node to its child node:

  

The following diagram shows the direction of an event flow during its bubble phase. During the bubble phase, the events flow from the child node to the parent node:

Let's create a Lightning Application ...

Get Learning Salesforce Lightning Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.