Forms
Form Element
You can construct a data structure of key/value pairs representing form fields and their values using the FormData constructor [MDN].
Submitting a form fires the submit event [MDN].
- An instance of the
SubmitEventinterface is passed to callback functions. The instance includes asubmitterproperty which identifies the element which invoked the submission. [MDN]
You can programmatically submit a form using the submit() method, it will ignore any form validations and will not execute any submit event handlers [MDN]. If instead you want to have the same behaviour as clicking a submit button, use the requestSubmit() method [MDN].
The form element does not have a disabled attribute. To disable a whole form at once, a workaround with the fieldset element can be used. [linkedlist.ch]