Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Nossos voluntários ainda não traduziram este artigo para o Português (do Brasil) . Junte-se a nós e ajude a fazer o trabalho!

Summary

Indicates whether the event is cancelable or not.

Syntax

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

Example

var bool = event.cancelable;

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

Notes

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.

Specifications

Specification Status Comment
DOM
The definition of 'Event.cancelable' in that specification.
Living Standard  
DOM4
The definition of 'Event.cancelable' in that specification.
Working Draft  
Document Object Model (DOM) Level 2 Events Specification
The definition of 'Event.cancelable' in that specification.
Recommendation Initial definition.

Etiquetas do documento e colaboradores

 Última atualização por: cvrebert,