Skip to content

Glossary: JavaScript in the Browser

submit event

Also written: submit

The event a form fires when it is submitted, including when someone presses Enter in a box. Listen for submit rather than click, and call preventDefault() to stay on the page.

Where the book teaches it

Related terms

preventDefaultFormDataDefault action