Find out if a specific event can bubble or not:
The result of x could be:
The bubbles event property returns a Boolean value that indicates whether or not an event is a bubbling event.
Event bubbling directs an event to its intended target, it works like this:
The event bubbles up from parent to parent until it is handled, or until it reaches the document object.
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
bubbles | Yes | 9.0 | Yes | Yes | Yes |
Return Value: | A Boolean, indicating whether the specified event is a bubbling event.
Possible values:
|
---|---|
DOM Version: | DOM Level 2 Events |