Gets or sets a value that indicates whether an event should be stopped from propagating up from the current target.
HRESULT IDOMEvent::get_cancelBubble(VARIANT_BOOL *p);HRESULT IDOMEvent::put_cancelBubble(VARIANT_BOOL v);
- Pointer to a variable of type VARIANT_BOOL that receives one of the values listed in Possible Values.
- VARIANT_BOOL that specifies one of the values listed in Possible Values.
VARIANT_TRUE Stop the event from propagating to the parent. VARIANT_FALSE Allow the event to propagate upwards.
Returns S_OK if successful, or an error value otherwise.
Also, you can use cancelBubble only to stop events in the bubbling phase. It does not stop events from being captured. For more information, see IDOMEvent::eventPhase.