Q. Which method stops event propagation in the DOM?

  • (A) stopPropagation()
  • (B) preventDefault()
  • (C) cancelBubble()
  • (D) haltEvent()
πŸ’¬ Discuss
βœ… Correct Answer: (A) stopPropagation()
Explanation: stopPropagation() prevents the event from bubbling up the DOM tree.
Explanation by: Mr. Dubey
stopPropagation() prevents the event from bubbling up the DOM tree.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
89
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate