event.cancelBubble

  • Revision slug: DOM/event.cancelBubble
  • Revision title: event.cancelBubble
  • Revision id: 18971
  • Created:
  • Creator: Jabez
  • Is current revision? No
  • Comment /* Syntax */

Revision Content

{{template.DomRef()}}

Summary

Indicates whether the event bubbling was canceled for this event.

Syntax

event.cancelBubble = bool
bool = event.cancelBubble

bool is the boolean value of true or false.

Notes

cancelBubble is set to false by default. This allows the event to bubble up the DOM, if it is a bubbleable event. Setting this property to true stops the event from bubbling up the DOM. Not all events are allowed to bubble up the DOM.

{{ wiki.languages( { "pl": "pl/DOM/event.cancelBubble" } ) }}

Revision Source

<p>
{{template.DomRef()}}
</p>
<h3 name="Summary">Summary</h3>
<p>Indicates whether the event bubbling was canceled for this event. 
</p>
<h3 name="Syntax">Syntax </h3>
<pre class="eval">event.cancelBubble = <i>bool</i>
<i>bool</i> = event.cancelBubble
</pre>
<p><code>bool</code> is the boolean value of <code>true</code> or <code>false</code>.
</p>
<h3 name="Notes"> Notes </h3>
<p>cancelBubble is set to false by default. This allows the event to bubble up the DOM, if it is a bubbleable event. Setting this property to true stops the event from bubbling up the DOM. Not all events are allowed to bubble up the DOM.
</p>{{ wiki.languages( { "pl": "pl/DOM/event.cancelBubble" } ) }}
Revert to this revision