aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/htmlformelement/method/index.md
blob: 43eaa9c50a72745d4923277d3c06da74e0c2460e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
title: HTMLFormElement.method
slug: Web/API/HTMLFormElement/method
translation_of: Web/API/HTMLFormElement/method
---
{{APIRef("HTML DOM")}}

La propriété **`HTMLFormElement.method`** représente la méthode HTTP utilisée pour soumettre un formulaire.

## Syntaxe

    string = form.method
    form.method = string

## Exemple

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

## Spécification

[HTML 5, Section 4.10.19.6, Form submission](http://www.w3.org/TR/html5/association-of-controls-and-forms.html#dom-fs-method)

[DOM Level 2 HTML: method](http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82545539)