Summary
Indicates whether the given event bubbles up through the DOM or not.
Syntax
event.bubbles
Value
A Boolean, which is true if the event bubbles up through the DOM.
Example
function goInput(e) {
// checks bubbles and
if (!e.bubbles) {
// passes event along if it's not
passItOn(e);
}
// already bubbling
doOutput(e)
}
Note: Only certain events can bubble. Events that do bubble have this property set to true. You can use this property to check if an event is allowed to bubble or not.
Specifications
| Specification | Status | Comment |
|---|---|---|
| DOM The definition of 'Event.bubbles' in that specification. |
Living Standard | |
| Document Object Model (DOM) Level 2 Events Specification The definition of 'Event.bubbles' in that specification. |
Recommendation | Initial definition. |
Document Tags and Contributors
Tags:
Contributors to this page:
DomenicDenicola,
chrisdavidmills,
cvrebert,
Sheppy,
fscholz,
teoli,
kosvrouvas,
kscarfone,
Cobra,
ziyunfei,
Matej Lednar,
Brettz9,
Mgjbot,
Jabez,
Ptak82,
Dria,
JesseW
Last updated by:
DomenicDenicola,