Event preventDefault From W3C:
The event.preventDefault() method stops the default action of an
element from happening.
For example:
Prevent a submit button from submitting a form Prevent a link from
following the URL
Event stopPropagation From W3C:
The event.stopPropagation() method stops the bubbling of an event to
parent elements, preventing any parent event handlers from being
executed.