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/document/writeln/index.html | 58 ++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 files/fr/web/api/document/writeln/index.html (limited to 'files/fr/web/api/document/writeln') diff --git a/files/fr/web/api/document/writeln/index.html b/files/fr/web/api/document/writeln/index.html new file mode 100644 index 0000000000..046c069cbc --- /dev/null +++ b/files/fr/web/api/document/writeln/index.html @@ -0,0 +1,58 @@ +--- +title: Document.writeln() +slug: Web/API/Document/writeln +tags: + - API + - DOM + - Method + - Reference +translation_of: Web/API/Document/writeln +--- +

{{ ApiRef("DOM") }}

+ +

Écrit une chaine de caractères suivie d'un retour de ligne.

+ +

Syntaxe

+ +
document.writeln(ligne);
+
+ +

Paramètres

+ + + +

Exemple

+ +
document.writeln("<p>Entrez votre mot de passe :</p>");
+
+ +

Notes

+ +

document.writeln est identique à {{domxref("document.write")}}, mais ajoute une nouvelle ligne.

+ +
Note : document.writeln (comme document.write) n'a aucun effet en XHTML documents (vous obtiendrez une erreur "Operation is not supported" (NS_ERROR_DOM_NOT_SUPPORTED_ERR) dans la console). Ceci est le cas si un fichier est ouvert en local avec l'extension .xhtml ou pour tous documents utilisant le type MIME application/xhtml+xml. Pour plus d'informations, visitez W3C XHTML FAQ.
+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationÉtat
{{SpecName("HTML WHATWG", "#dom-document-writeln", "document.writeln()")}}{{Spec2("HTML WHATWG")}}
{{SpecName("DOM2 HTML", "html.html#ID-35318390", "document.writeln()")}}{{Spec2("DOM2 HTML")}}
+ +

Compatibilité des navigateurs

+ +

{{Compat("api.Document.writeln")}}

-- cgit v1.2.3-54-g00ecf