defaultPrevented property

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

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

 

Syntax

HRESULT value = object.get_defaultPrevented(* p);

Property values

Type: VARIANT_BOOL

VARIANT_TRUE (true)

The default action should be prevented.

VARIANT_FALSE (false)

The default action is allowed.

Standards information

Remarks

You can set the IDOMEvent::defaultPrevented while processing an event by calling the IDOMEvent::preventDefault method. If the event was initialized with the cancelable parameter of IDOMEvent::initEvent set to VARIANT_FALSE, the default action cannot be prevented.

See also

Reference
IDOMEvent::cancelable
IDOMEvent::preventDefault

 

 

Community Additions

ADD
Show:
© 2014 Microsoft