HTMLFormElement.method

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

Syntaxe

js
string = form.method;
form.method = string;

Exemple

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

Spécification

HTML 5, Section 4.10.19.6, Form submission

DOM Level 2 HTML: method