files/en-us/web/api/event/bubbles/index.md
{{APIRef("DOM")}}{{AvailableInWorkers}}
The bubbles read-only property of the {{domxref("Event")}} interface indicates whether the event bubbles up through the DOM tree or not.
[!NOTE] See Event bubbling for more information on bubbling.
A boolean value, which is true if the event bubbles up through the DOM tree.
function handleInput(e) {
// Check whether the event bubbles passes the event along
if (!e.bubbles) {
passItOn(e);
}
// Already bubbling
doOutput(e);
}
{{Specifications}}
{{Compat}}