Explain Event bubbling and Event Capturing in JavaScript?

devquora
devquora

Posted On: Feb 22, 2018

 

    2 Answers Written

  •  devquora
    Answered by Anil Saini
    • Javascript is a lightweight programming language
    • Javascript used for client-side web development used to make web pages interactive with html code
    • JavaScript is developed by Netscape software company

    String, Number, Boolean, Function, Object, Null and Undefined are datatypes supported by JavaScript

  •  devquora
    Answered by Priyag Chaudhary

    Event Bubbling in Javascript

    At the time of developing a web page or web application with JavaScript, you must come across the event bubbling. It is a technique of event handling where one element occurs inside another element. In another term, at the start of any event, the target element runs all the ancestor elements from bottom to top. At present all browsers are having the technique of event bubbling in JavaScript by Default. You can also stop event bubbling if needed by using the method of event.stopPropagation(). To stop the flow of events from the target event in DOM then this method will help you in stopping the events from traveling bottom to top.

Related Questions

Please Login or Register to leave a response.

Related Questions

JavaScript Interview Questions

Explain what is Javascript?

Javascript Javascript is an object-oriented computer programming language commonly used to create interactive effects wi..