I need to define a function named getText() that finds all Text nodes at or beneath a specified node, and then extracts and concatenates the textual content of the nodes and returns it as a single JavaScript string. In getText() it will be an alert that is called
My body content will be:
<body onload="getText()">
<div id="divText">
<h4>This is a heading!</h4>
<p>This is a paragraph.</p>
<p>And this is another paragraph.</p>
</div>
</body>