web api instance property
Event: bubbles property
Available in workers
The bubbles read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not.
[!NOTE] See Event bubbling for more information on bubbling.
Value
A boolean value, which is true if the event bubbles up through the DOM tree.
Example
function handleInput(e) {
// Check whether the event bubbles passes the event along
if (!e.bubbles) {
passItOn(e);
}
// Already bubbling
doOutput(e);
}
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
stopPropagation()to prevent further propagation of the current event in the capturing and bubbling phasesstopImmediatePropagation()to not call any further listeners for the same event at the same level in the DOMpreventDefault()to allow propagation to continue but to disallow the browser to perform its default action should no listeners handle the event