The read-only submitter
property found on the SubmitEvent
interface specifies the submit button or other element that was invoked to cause the form to be submitted.
The read-only submitter
property found on the SubmitEvent
interface specifies the submit button or other element that was invoked to cause the form to be submitted.
An element, indicating the element that sent the submit
event to the form. While this is often an <input>
element whose type
is submit
or a <button>
element whose type
is submit
, it could be some other element which has initiated a submission process.
If the submission was not triggered by a button of some kind, the value of submitter
is null
.
See SubmitEvent
for example code.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
submitter |
81 | 81 | 75 | No | 68 | 15.4 | 81 | 81 | 79 | 58 | 15.4 | 13.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SubmitEvent/submitter