title: "document.getElementByClass is not a function"
body: <p>I am trying to run a function <code>onclick</code> of any button with <code>class="stopMusic"</code>. I'm getting an error in Firebug </p>
  
  <blockquote>
    <p>document.getElementByClass is not a function</p>
  </blockquote>
  
  <p>Here is my code:</p>
  
  <pre><code>var stopMusicExt = document.getElementByClass("stopButton");
      stopButton.onclick = function() {
          var ta = document.getElementByClass("stopButton");
          document['player'].stopMusicExt(ta.value);
          ta.value = "";
      };
  </code></pre>