Javascript examples for DOM:Event
The Bubbles event property returns a Boolean value telling if an event is a bubbling event.
Event is bubbling from triggered element to its parent until it is handled, or reaches the document object.
A Boolean, indicating whether the specified event is a bubbling event.
The following code shows how to find out if a specific event can bubble.
<!DOCTYPE html> <html> <body> <button onclick="myFunction(event)">Test</button> <p id="demo"></p> <script> function myFunction(event) {//from ww w. ja v a2 s . co m var x = event.bubbles; document.getElementById("demo").innerHTML = x; } </script> </body> </html>