From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/fr/web/api/htmlformelement/submit/index.html | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 files/fr/web/api/htmlformelement/submit/index.html (limited to 'files/fr/web/api/htmlformelement/submit/index.html') diff --git a/files/fr/web/api/htmlformelement/submit/index.html b/files/fr/web/api/htmlformelement/submit/index.html new file mode 100644 index 0000000000..4dfb9ba3f0 --- /dev/null +++ b/files/fr/web/api/htmlformelement/submit/index.html @@ -0,0 +1,42 @@ +--- +title: HTMLFormElement.submit() +slug: Web/API/HTMLFormElement/submit +tags: + - HTML DOM + - HTMLFormElement + - Méthode +translation_of: Web/API/HTMLFormElement/submit +--- +
{{APIRef("HTML DOM")}}
+ +

La méthode  HTMLFormElement.submit()  soumet un {{HtmlElement("form")}} donné

+ +

Cette méthode est similaire, mais pas identique, à l’activation du script submit {{HtmlElement ("button")}}. Lors de l'appel direct de cette méthode, cependant:

+ + + +

Si un contrôle de formulaire (tel qu'un  submit bouton ) a unname ou un id de submit, cette méthode masquera la méthode d'envoi du formulaire.

+ +

Syntax

+ +
HTMLFormElement.submit()
+
+ +

Exemple

+ +
document.forms["myform"].submit();
+
+ +

Specification

+ +

HTML Living standard: The form element

+ +

Compatibilité du navigateur

+ + + +

{{Compat("api.HTMLFormElement.submit")}}

-- cgit v1.2.3-54-g00ecf