Retrieves the immediate text child nodes of the parent node, that are adjacent to the text node.
SyntaxNote: This property is read-only.
var text = textNode.wholeText;
Return Value
Returns an object of type StringString
The text of the node and its adjacent text nodes.
Examples<body>
<p id="p">this is a text node that also has <strong id="s">strong</strong> elements.</p>
<script type="text/javascript">
alert(document.getElementById('p').firstChild.wholeText);
</script>
</body>
Related specifications
Mozilla Developer Network : [Text.wholeText Article]
Microsoft Developer Network: [wholeText Property 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