defaultPrevented property

This topic has not yet been rated - Rate this topic

Gets a value that indicates whether the default action should be canceled.

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

Syntax

JavaScript

p = object.defaultPrevented

Property values

Type: Boolean

true (true)

The default action should be prevented.

false (false)

The default action is allowed.

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.