aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/htmlformelement/method/index.html
blob: 3a92078c9694d9b97cbe2087de68869d15b7e372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
title: HTMLFormElement.method
slug: Web/API/HTMLFormElement/method
tags:
  - DOM
  - Gecko
  - Gecko DOM Reference
translation_of: Web/API/HTMLFormElement/method
---
<div>
 {{APIRef}}</div>
<div>
  </div>
<div>
 <span style="font-size: 2.14285714285714rem; font-weight: 700; letter-spacing: -1px; line-height: 30px;">概要</span></div>
<p><code>method</code> は、 フォーム送信時に使用する HTTPメソッドを取得 / 設定する。</p>
<h2 id="Syntax" name="Syntax">構文</h2>
<pre class="syntaxbox"><var>string</var> = form.method; //取得
form.method = <var>string</var>; //設定
</pre>
<h2 id="Example" name="Example"></h2>
<pre class="brush:js">var myform = document.forms["myform"];

myform.method = "post";
</pre>
<h2 id="Specification" name="Specification">仕様</h2>
<ul>
 <li><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82545539">DOM Level 2 HTML: method</a></li>
</ul>