.preventDefault()
Term side of the Card
Topic: Event
Unit title: .preventDefault()
Categories: Method
Explanation side of the Card
Explanation: The browser API method that prevents the default action associated with the event. It stops the browser's default behavior, such as reloading the page on form submission.
Browser compatibility:
- The chrome browser supports this feature starting from version 1
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 1
- The safari browser supports this feature starting from version 1
Availability: