<form onSubmit=””>

0 Shares
Attribute of
<form> HTML Tag
What does <form onSubmit=""> do?
Runs a script when the Submit button is clicked.

onReset is an event handler that runs a script when the Submit button is clicked. You could use this to confirm that the user really wants the form to be submitted.

Claire is seasoned technical writer, editor, and HTML enthusiast. She writes for HTML.com and runs a content agency, Red Robot Media.

Browser Support for onSubmit

AllAllAllAllAllAll
0 Shares