--- title: document.writeln slug: Web/API/Document/writeln tags: - DOM - Wszystkie_kategorie translation_of: Web/API/Document/writeln ---
{{APIRef("DOM")}}
Zapisuje w dokumencie ciąg tekstu, a po nim znak nowej linii.
document.writeln(linia)
linia
jest ciągiem zawierającym wiersz tekstu do wpisania.document.writeln("<p>podaj hasło:</p>");
document.writeln nie różni się niczym od document.write, poza tym, że dodaje na końcu znak nowego wiersza.
{{ languages( { "en": "en/DOM/document.writeln", "ja": "ja/DOM/document.writeln" } ) }}