© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Loke Carlsson
Web Developer
First answer on SO (was looking for better wording than i could come up with myself).
stopPropagation stops the event from bubbling up the event chain.
preventDefault prevents the default action the browser makes on that event