Q. Which method is used to prevent the default action of an event?
β
Correct Answer: (A)
preventDefault()
Explanation: preventDefault() stops the browser’s default behavior for an event.