title: How to retrieve text content of a node with getElementsByTagName in javascript?
body: <p>I want to retrieve text content of a tag. I wrote this:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;script type="text/javascript"&gt;
  var bono=document.getElementsByTagName("HYPHENATION");
  alert(bono[0].data);
  &lt;/script&gt;
  &lt;HYPHENATION&gt;mani&lt;/HYPHENATION&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>but it gives me an error:</p>
  
  <pre><code>'bono.0.data' is null or not an object
  </code></pre>
  
  <p>what is my mistake?</p>