A

Admin • 833.24K Points
Coach

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

  • (A) preventDefault()
  • (B) stopDefault()
  • (C) halt()
  • (D) cancelEvent()
  • Correct Answer - Option(A)
  • Views: 28
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

preventDefault() stops the browser’s default behavior for an event.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.