MDN Web Docs

Value

A boolean value, which is true if the event bubbles up through the DOM tree.

Example

js

function handleInput(e) {
  // Check whether the event bubbles passes the event along
  if (!e.bubbles) {
    passItOn(e);
  }
  // Already bubbling
  doOutput(e);
}

Specifications

Specification
DOM
# ref-for-dom-event-bubbles③

Browser compatibility

See also

  • stopPropagation() to prevent further propagation of the current event in the capturing and bubbling phases
  • stopImmediatePropagation() to not call any further listeners for the same event at the same level in the DOM
  • preventDefault() to allow propagation to continue but to disallow the browser to perform its default action should no listeners handle the event

Help improve MDN

Yes No

Learn how to contribute

This page was last modified on by MDN contributors.

Read the original on developer.mozilla.org ↗