Описание тега form-submit
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 <input type="submit"/>, <input type="image"/>, or <button type="submit">, or by pressing Enter when certain form elements have focus.
</button>
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 <input type="submit">
, <input type="image">
, or <button type="submit">
, or by pressing Enter when certain form elements have focus.
Depending on the browser, the Enter key may only cause a form submission if the form has exactly one text field, or only when there is a submit button present. The interface should not rely on a particular behavior for this key unless the issue is forced by observing the keypress event for presses of the Enter key.