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

# write Method (Document Object)

Inserts or overwrites a string at the current cursor position.

##

### [JavaScript]

    document.write( str );

### [VBScript]

    document.write str

## Parameters

str

Specifies the string to be inserted or overwritten.

## Examples

### [JavaScript]

    document.write( "Hello" );

### [VBScript]

    document.write "Hello"

## Version

Supported on EmEditor Professional Version 4.00 or later.