...

/

Solution Review: Event Delegation

Solution Review: Event Delegation

In this lesson, we will discuss the solutions to the questions in the previous lesson.

Question 1: Solution review #

Explanation #

Options B & D are correct. Both event.stopPropogation() and event.cancelBubble can be used to stop event bubbling.

A bubbling event will propagate upwards from the target element. For example, in the case of a click event, it will bubble up until it reaches the document object. However, at any point, a handler may decide that the event has been fully processed and stop bubbling. This can be achieved using ...

Access this course and 1400+ top-rated courses and projects.