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.
formAction
は HTMLInputElement
インターフェイスのプロパティで、このコントロールを含むフォームが送信された際にサーバー上で実行されるプログラムの 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 GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
formAction |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.