Gets a value that indicates whether the default action should be canceled.
![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Boolean
Standards information
Remarks
You can set the defaultPrevented while processing an event by calling the preventDefault method. If the event was initialized with the cancelable parameter of initEvent set to false, the default action cannot be prevented.
See also
- SVGZoomEvent
- BeforeUnloadEvent
- CompositionEvent
- CustomEvent
- Event
- DragEvent
- FocusEvent
- KeyboardEvent
- MessageEvent
- MouseEvent
- MutationEvent
- StorageEvent
- TextEvent
- UIEvent
- Reference
- cancelable
- preventDefault
Build date: 11/29/2012
