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/wholeText below:

wholeText ยท WebPlatform Docs

wholeText Summary

Retrieves the immediate text child nodes of the parent node, that are adjacent to the text node.

Property of dom/Textdom/Text

Syntax

Note: 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
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