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.
Glossary: JavaScript in the Browser
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.