# DestructiveInsert Method (Selection Object)

Inserts text, overwriting the existing text.

### \[JavaScript\]

```javascript
document.selection.DestructiveInsert( str );
```

### \[VBScript\]

```vbscript
document.selection.DestructiveInsert str
```

## Parameters

`str`

Specifies a string to insert, overwriting the existing text.

## Version

Supported on EmEditor Professional Version 4.00 or later.
