HTMLInputElement: formAction プロパティ

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.

formActionHTMLInputElement インターフェイスのプロパティで、このコントロールを含むフォームが送信された際にサーバー上で実行されるプログラムの URL です。これは、<input>formaction 属性の値を反映します。

このプロパティは submit および image 型の <input> 要素にのみ有効です。

この値はフォームがこの入力フィールドから送信された場合、 HTMLFormElement インターフェイスの action プロパティの値を上書きします。このプロパティは受け取ったり設定したりすることができます。

文字列です。フォームを送信する URL です。

js
inputElement.formAction = "/cgi-bin/publish";

仕様書

Specification
HTML
# dom-fs-formaction

ブラウザーの互換性

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
formAction

Legend

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

Full support
Full support

関連情報