Gets a value that indicates whether you can cancel an event's default action.
![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Boolean
true (true)
-
The default action can be canceled.
false (false)
-
The default action cannot be canceled.
Standards information
Remarks
If you cannot cancel the event, calling preventDefault has no effect.
When you create a custom event by using the createEvent method, you can set the cancelable property by using the initEvent method.
See also
- SVGZoomEvent
- BeforeUnloadEvent
- CompositionEvent
- CustomEvent
- Event
- DragEvent
- FocusEvent
- KeyboardEvent
- MessageEvent
- MouseEvent
- MutationEvent
- StorageEvent
- TextEvent
- UIEvent
- Reference
- bubbles
- preventDefault
Build date: 11/29/2012
