aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/api/htmlformelement/method/index.html
blob: bffd4f7faf1c8f50bf6ee824ce21d3571e83d62e (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
---
title: HTMLFormElement.method
slug: Web/API/HTMLFormElement/method
translation_of: Web/API/HTMLFormElement/method
---
<div>{{APIRef("HTML DOM")}}</div>

<p><b>method</b> legge o imposta il metodo HTTP utilizzato per l'invio del form.</p>

<p>
 </p><h3 id="Sintassi" name="Sintassi">Sintassi</h3>
<p></p>

<pre class="eval"><i>stringa</i> = form.method
form.method =
<i>stringa</i>
</pre>

<h3 id="Esempio" name="Esempio">Esempio</h3>

<pre class="eval">document.forms["myform"].method = "POST";
</pre>

<h3 id="Specifiche" name="Specifiche">Specifiche</h3>

<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82545539">DOM Level 2 HTML: method</a></p>

<p>{{ languages( { "ja": "ja/DOM/form.method" } ) }}</p>