HTMLButtonElement: 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
は HTMLButtonElement
インターフェイスのプロパティで、このコントロールを含むフォームが送信された際にサーバー上で実行されるプログラムの URL です。これは、この <button>
の formaction
属性の値を反映します。
この値はフォームがこのボタンから送信された場合、 HTMLFormElement
インターフェイスの action
プロパティの値を上書きします。このプロパティは受け取ったり設定したりすることができます。
値
文字列です。フォームを送信する URL です。
例
js
btnEl.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
- See implementation notes.
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.