Glossary: JavaScript in the Browser
preventDefault
Also written: event.preventDefault()
A method on the event object that cancels the browser's default action, such as stopping a form submit from reloading the page.
Glossary: JavaScript in the Browser
Also written: event.preventDefault()
A method on the event object that cancels the browser's default action, such as stopping a form submit from reloading the page.