stopPropagation is a method of the event object that prevents further propagation of the current event.
stopPropagation is a method of the event object that prevents further propagation of the current event. This prevents ancestors of the current node from receiving the event.