cancelable property
Gets a value that indicates whether you can cancel an event's default action.
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