Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

bubbles Event Attribute

bubbles Event Attribute

Event Object Reference Event Object


Definition and Usage

The bubbles event attribute returns a Boolean value. If the event is a bubbling type, it returns true; otherwise it returns false.

Event bubbling is divided into three phases, as follows:

Syntax

event

.bubbles


Example

Example

The following example checks whether the event that occurred is a bubbling event:

Runoob Tutorial(runoob.com)

Click this paragraph; if the event is a bubbling event, an alert box will pop up.

Try it »


Event Object Reference Event Object