We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

event.cancelable Redirect 1


Indicates whether the event is cancelable or not.


bool = event.cancelable
  • The result is a Boolean, which is true if the event can be canceled.


var bool = event.cancelable;

bool contains true or false, depending on whether the event can have its default action prevented.


Whether an event can be canceled or not is something that's determined when that event is initialized.

To cancel an event, call the preventDefault() method on the event. This keeps the implementation from executing the default action that is associated with the event.


Document Tags and Contributors

Last updated by: Sheppy,