JavaScript Associate — Easy
Key points
- event.preventDefault() specifically targets the default action of the event
- It does not stop event propagation to parent elements
- Other event listeners on the element will still be triggered
Ready to go further?
Related questions
