Content-Length: 190396 | pFad | http://developer.mozilla.org/ja/docs/Web/API/HTMLFormElement/method

HTMLFormElement: method プロパティ - Web API | MDN

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

HTMLFormElement: method プロパティ

Baseline Widely available

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

HTMLFormElement.method プロパティは、<form> を送信するために使用される HTTP メソッドを表します。

明示的に指定されなかった場合、既定のメソッドは 'get' です。

文字列です。

js
document.forms["myform"].method = "post";

const formElement = document.createElement("form"); // フォームを生成
document.body.appendChild(formElement);
console.log(formElement.method); // 'get'

仕様書

Specification
HTML
# dom-fs-method

ブラウザーの互換性









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://developer.mozilla.org/ja/docs/Web/API/HTMLFormElement/method

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy