Visit Mozilla.org

DOM:event.cancelBubble

From MDC

« Gecko DOM Reference

[edit] Summary

Deprecated

Indicates if event bubbling for this event has been canceled or not.

[edit] Syntax

event.cancelBubble = bool
bool = event.cancelBubble

bool is the boolean value of true or false.

[edit] 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.

Use event.stopPropagation() instead of this non-standard method.