Document.writeln()
Écrit une chaine de caractères suivie d'un retour de ligne.
Syntaxe
js
document.writeln(ligne);
Paramètres
ligne
est la chaine de caractère contenant le texte.
Exemple
js
document.writeln("<p>Entrez votre mot de passe :</p>");
Notes
document.writeln est identique à document.write
, mais ajoute une nouvelle ligne.
Spécifications
Specification |
---|
HTML # dom-document-writeln-dev |
Compatibilité des navigateurs
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
writeln | ||||||||||||
Accepts TrustedHTML instances |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- No support
- No support
- User must explicitly enable this feature.
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.