2.1.1 cancelBubble Attribute

cancelBubble of type boolean, read/write

Gets or sets a value that indicates whether the current event should bubble up the hierarchy of event handlers. Specifies one of the following values:

  • false - Bubbling is enabled for this event. The next event handler in the hierarchy receives the event.

  • true - Bubbling is disabled for this event. The next event handler in the hierarchy does not receive the event.

The default value is false.

Using the cancelBubble attribute to cancel bubbling for an event does not affect subsequent events.