org.w3c.dom.CharacterData.replaceData
method

    public replaceData(offset as Int, count as Int, arg as String) as Void throws DOMException

Description

Replaces a range of text.

Parameters

Parameter | Description
--- | ---
`offset` | Start offset.
`count` | Number of characters to replace.
`arg` | Replacement text.

Throws

- DOMException if the range is invalid.

Example

    text.replaceData(0, 4, "Klyn")