The submit event is sent to an element when the user is attempting to submit a form. It can only be attached to form elements. Forms can be submitted either by clicking an explicit , , or , or by pressing Enter when certain form elements have focus.