EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

cancelable property

Gets a value that indicates whether you can cancel an event's default action.

Document Object Model (DOM) Level 3 Events Specification, Section 4.1

Syntax

JavaScript

p = object.cancelable

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

BeforeUnloadEvent
CompositionEvent
CustomEvent
DragEvent
Event
FocusEvent
KeyboardEvent
MessageEvent
MouseEvent
MouseWheelEvent
MSSiteModeEvent
MutationEvent
StorageEvent
SVGZoomEvent
TextEvent
UIEvent
Reference
bubbles
preventDefault

 

 

Anzeigen:
© 2014 Microsoft