Event.cancelable (Property)

If the event can be cancelled, then this flag will be set true.


DOM level - 2
JavaScript - 1.5
Netscape - 6.0
Property/method value type:Boolean primitive
JavaScript syntax:NmyEvent.cancelable

Events can be cancelled and have their default action prevented. If the event can support this, then the true value will be present. This will affect the value returned to the dispatcher that triggered the event. Dispatchers should behave consistently whether they are EventTarget objects or the implementation that the scripts are executing in.

Property attributes: