• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in JavaScript by
Q:
In JavaScript, what is known as event bubbling?

1 Answer

0 votes
by

Event bubbling refers to a specific way of event propagation in HTML DOM API. This happens when an event occurs within an element inside of another element and when both elements have a handle registered for the said event. When it comes to bubbling, the event which is first captured by the innermost element is eventually relayed to the outer elements.

Once the execution begins from one event, it goes out to the parent element. After that, the execution passes on to the parent element and this continues till the body element.

Related questions

0 votes
asked Mar 20, 2021 in JavaScript by sharadyadav1986
0 votes
asked Mar 2, 2020 in JAVA by rahuljain1
...