Export (0) Print
Expand All

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.1Internet Explorer 9

 

Syntax

HRESULT value = object.get_cancelable(* p);

Property values

Type: VARIANT_BOOL

VARIANT_TRUE (true)

The default action can be canceled.

VARIANT_FALSE (false)

The default action cannot be canceled.

Standards information

Remarks

If you cannot cancel the event, calling IDOMEvent::preventDefault has no effect.

When you create a custom event by using the IDocumentEvent::createEvent method, you can set the IDOMEvent::cancelable property by using the IDOMEvent::initEvent method.

See also

Reference
IDOMEvent::bubbles
IDOMEvent::preventDefault

 

 

Community Additions

ADD
Show:
© 2014 Microsoft