get the text of a div
<p>I have been trying to get the text from a div using only javascript.</p>

<p>I started with jQuery using the following code:</p>

<pre><code>var divText = $("div.Xr3").html();
</code></pre>

<p>Then for my JavaScript I tried:</p>

<pre><code>var divText = document.getElementsByClassName("Xr3").innerHtml;
</code></pre>

<p>Which returns undefined. How can I accomplish this using JavaScript only?</p>
