I have an HTML file which contains the following line:
<div><img src="img1.gif"><br>My Text</div>
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.