Getting the value of text from a text object in JavaScript
<p>I have an HTML file which contains the following line:</p>

<pre><code>&lt;div&gt;&lt;img src="img1.gif"&gt;&lt;br&gt;My Text&lt;/div&gt;
</code></pre>

<p>I'm trying to select the phrase "My Text" using JavaScript so I can change it. I'm able to get the object that contains the text by using lastChild, but can't figure out how to get the value of the text itself.</p>
