A

Admin • 833K Points
Coach

Q. Which method stops event propagation in the DOM?

  • (A) stopPropagation()
  • (B) preventDefault()
  • (C) cancelBubble()
  • (D) haltEvent()
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

stopPropagation() prevents the event from bubbling up the DOM tree.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.