A RetroSearch Logo

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

Search Query:

Showing content from https://webplatform.github.io/docs/dom/Text/replaceWholeText below:

replaceWholeText ยท WebPlatform Docs

replaceWholeText Summary

Replaces the text of the current object.

Method of dom/Textdom/Text

Syntax
var textNode = textNode.replaceWholeText();
Parameters text
Data-type
String

The text that replaces the existing text.

Return Value

Returns an object of type DOM NodeDOM Node

A Text node that received the replacement text. If the replaced text was empty, this value will be null. If the current node is read-only, a new Text node is returned. If the current node is not read-only, the same object is returned.

Notes

Obsolete

This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Related specifications
DOM Level 3 Core
Recommendation
DOM
Living Standard
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