SubmitEvent.submitter

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

submitterSubmitEvent インターフェイスにある読み取り専用プロパティで、フォームを送信させるために呼び出された送信ボタンや他の要素を指定します。

要素で、フォームに送信した submit イベントを送った要素を表します。これは、 <input> 要素で typesubmit であるものや、 <button> 要素で typesubmit であるものが多いのですが、送信処理を開始した要素は他のものである可能性があります。

送信が何らかのボタンによって発生したものでない場合、 submitter の値は null になります。

コード例は SubmitEventを参照してください。

仕様書

Specification
HTML
# the-submitevent-interface:dom-submitevent-submitter-2

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
submitter

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
Has more compatibility info.