HTML DOM writeln() Method (original) (raw)

Last Updated : 3 Aug, 2023

The **writeln() method is used to write a document with the additional property of a newline character after each statement. This method is similar to the document.write() method.

**Syntax:

document.writeln( exp1, exp2, exp3, ... )

**Parameters: This method contains many parameters which are optional. All the expression arguments (exp1, exp2, ...) can be listed and displayed in the order of occurrence.

**Example: In this example, we will use the **writeln() method

HTML `

DOM writeln() Method

GeeksforGeeks

DOM writeln() Method

        
    
        
    

`

**Output:

**Supported Browsers: The browser supported by _writeln() method are listed below: