cancelable property
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
- MouseWheelEvent
- MutationEvent
- MSSiteModeEvent
- StorageEvent
- TextEvent
- UIEvent
- Reference
- bubbles
- preventDefault
Send comments about this topic to Microsoft
Build date: 1/23/2013

