Jaa


defaultPrevented property

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

 

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