--- title: document.writeln slug: Web/API/Document/writeln tags: - DOM - Wszystkie_kategorie translation_of: Web/API/Document/writeln ---

{{APIRef("DOM")}}

Podsumowanie

Zapisuje w dokumencie ciąg tekstu, a po nim znak nowej linii.

Składnia

document.writeln(linia)

Parametry

Przykład

document.writeln("<p>podaj hasło:</p>");

Uwagi

document.writeln nie różni się niczym od document.write, poza tym, że dodaje na końcu znak nowego wiersza.

Specyfikacja

writeln

 

{{ languages( { "en": "en/DOM/document.writeln", "ja": "ja/DOM/document.writeln" } ) }}