<p title="The test paragraph">This example demonstrates some <b>HTML content that may be<br>present</b> in your file</p>
txt=document.getElementsByTagName("p")[0].childNodes[0].nodeValue;
alert("<p>The text from the introduction paragraph is: " + txt + "</p>");
Unfortunately, it's not functional.
Is there a way to retrieve the childNodes.nodeValue "This is an example of HTML content that might exist in your document"?