Q. Which method is used to prevent the default action of an event?

  • (A) preventDefault()
  • (B) stopDefault()
  • (C) halt()
  • (D) cancelEvent()
πŸ’¬ Discuss
βœ… Correct Answer: (A) preventDefault()
Explanation: preventDefault() stops the browser’s default behavior for an event.
Explanation by: Mr. Dubey
preventDefault() stops the browser’s default behavior for an event.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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