Javascript getElementByClass
<p>I am trying to run a function onClick of any button with class="stopMusic".  I'm getting an error in Firebug "document.getElementByClass is not a function"</p>

<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>
