Event Object Methods Flashcards

1
Q

preventDefault()

A

To cancel the event if it is cancelable, meaning that any default action normally taken by the implementation as a result of the event will not occur

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

stopPropagation()

A

To prevent further propagation of an event during event flow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly