Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

The Form events

The Form element can have many events attached, but for now we are going to focus to the two main ones. The submit event and the reset event.

The Submit event. This is the final action a form takes, and the purpose of the form itself. To submit, or send the data that the form is comprised of to a specific destination.This destination will grab the data and will do something with it. The default behavior after the sending of data, is to reset the form and reload the page. The 'How' and the 'Where' are two questions that will be answered later.

The Reset event. This action can be taken any time before submit and restores the data of each input field of a form to it's initial state. It doesn't submit, it just starts over. Reset can be heavily used on a click of a button in order to clear all the fields of the form from any data before submitting. After submitting all the fields are cleared, which is a part of the form's submit event's default behavior.