== .getText ==

.getText()

Returns the text content of an Element (including from sub-elements).
Usage:
[[mdn>Web/JavaScript/Reference/Global_Objects/String|String]] = Element.''.getText''()
Member of:
[[mdn>Web/API/HTMLElement|HTMLElement]]
Parameters:
none
Returns:
The text content of the parent [[mdn>Web/API/HTMLElement|HTMLElement]] as [[mdn>Web/JavaScript/Reference/Global_Objects/String|String]].
Notes:
* This is just a simple wrapper for the built-in [[mdn>Web/API/Node/textContent|.textContent]] method. * The returned String contains all non-Element text nodes, including possible ''[[mdn>Web/HTML/Element/script|