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
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
Show:

