event.stopPropagation()

event.stopPropagation()

event.stopPropagation()Returns:

Description: Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.

We can use event.is