Replaces the text of the current object.
Syntaxvar textNode = textNode.replaceWholeText();
Parameters text
The text that replaces the existing text.
Return ValueReturns 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.
NotesObsolete
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 specificationsMozilla Developer Network : [Text.replaceWholeText Article]
Microsoft Developer Network: [replaceWholeText Method Article]
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