The 'submit' event, which is dispatched on form submission, gets its own interface, SubmitEvent, which has a 'submitter' property.

Motivation

Some web applications do their own form submission by preventDefault()ing 'submit' event. However, the event didn't tell which submit button triggered this submission. Adding 'submitter' property to the event enables application to refer to an entry data, the formaction attribute, the formenctype attribute, the formmethod attribute, and the formtarget attribute of the submitter button.

Documentation

Specification

Specification link


Unknown standards status - check spec link for status

Status in Chromium

Blink>Forms


Enabled by default (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Positive
  • No signal
  • No signal
  • Positive

Owners

Search tags

submit event, submitter, forms,

Last updated on 2021-08-09