title: get ul in javascript and append li
body: <p>What I'm trying to do is creating a <code>&lt;li&gt;</code> which should be added to the existing <code>&lt;ul&gt;</code>
  I want to append the textnode to the  without giving it an ID. 
  I try to do it with pure JavaScript, without jQuery.</p>
  
  <p>What I got so far (and it does not work ):</p>
  
  <pre><code>function addElement () {
      var newLi = document.createElement("li");
      var text = document.createTextNode("Teststring in &lt;li&gt;");
      newLi.appendChild(text);
      var ulnew = document.getElementsByTagName('ul')
      ulnew.appendChild(newLi)    
  }
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;body onload="addElement()"&gt;
      &lt;ul&gt;&lt;/ul&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Anyone who can help out?
  Thanks</p>