HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

writeln

Description

The writeln of Document for JS adds the given string(s) to the Document's input stream, followed by a newline character. If necessary, calls the open() method implicitly first.

Throws an "InvalidStateError" DOMException when invoked on XML documents.

Throws an "InvalidStateError" DOMException if the parser is currently executing a custom element constructor.

Syntax

document.writeln(...text)

Parameters

text

A string.

Examples

1 · text · single

2 · text · multiple

3 · multiple calls

4 · `