A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/CharacterData/insertData below:

insertData ยท WebPlatform Docs

insertData Summary

Inserts a new character string into the node at the specified offset.

Method of dom/CharacterDatadom/CharacterData

Syntax
 textualNode.insertData(offset, text);
Parameters offset
Data-type
String

The zero-based offset from which to start.

text
Data-type
String

The new character string.

Return Value

No return value

Examples

var phrase = document.createTextNode ("A flawed plan today is better than a perfect plan tomorrow.");

phrase.insertData(23, "much ");

alert(phrase.data);
Related specifications
DOM Level 3 Core
Recommendation
Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4