Easy Tutorial
❮ Obj Screen Prop Audio Mediagroup ❯

HTML DOM writeln() Method


Definition and Usage

The writeln() method is identical to the write() method, with the addition of writing a newline character after each expression.

Syntax

Parameter Description
exp1, exp2, exp3, ... Optional. The output stream to be written. They will be appended to the document in sequence.

Browser Support

All major browsers support the writeln() method.


Example

Example

Difference between write() and writeln():


❮ Obj Screen Prop Audio Mediagroup ❯