Macro Reference — Document Object — writeln Method (Document Object)

# writeln Method (Document Object)

Inserts or overwrites a string and a newline character at the current cursor position.

##

### [JavaScript]

    document.writeln( str );

### [VBScript]

    document.writeln str

## Parameters

str

Specifies the string to be inserted or overwritten.

## Examples

### [JavaScript]

    document.writeln( "Hello" );

### [VBScript]

    document.writeln "Hello"

## Version

Supported on EmEditor Professional Version 4.00 or later.