title: Get element by half classname (no jQuery)
body: <p>I want to to get in titels a list of the 3 links by calling them through the function
  everything goes well untill it comes to the last part of the (javascript) code. When it execute that code it says 'undefined' 3 times.. </p>
  
  <p>Why does it not just show the 3 names?</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;h3&gt;
  &lt;a id="126" class="6.3 linksh3 filmnaam" href="#"&gt;Name1&lt;/a&gt;&lt;/h3&gt;
  &lt;h3&gt;
  &lt;a id="100" class="7.4 linksh3 filmnaam" href="#"&gt;Name2&lt;/a&gt;&lt;/h3&gt;
  &lt;h3&gt;
  &lt;a id="101" class="6.4 linksh3 filmnaam" href="#"&gt;Name3&lt;/a&gt;&lt;/h3&gt;
  </code></pre>
  
  <p>Javascript</p>
  
  <pre><code>    for (v = 0; v &lt; classname.length; v++) { //classname = ["6.3", "6.4", "7.4"]
          titels.push(document.getElementsByClassName(classname[v]).innerHTML);
          console.log(titels[v]);
      }
  </code></pre>
  
  <p>(no jQuery)</p>
  
  <p>Thank you in advance</p>