title: Javascript - change value of variable on button click
body: <p>I have an 10 HTML buttons that I need to change the value of a javascript variable when clicked.  </p>
  
  <pre><code>song2 = "mp3Player/kingRight.mp3";
   function returnVar2(song2) { return this[song2]; }
  </code></pre>
  
  <p>Song2 needs a new URL depending on which button is clicked.  </p>
  
  <p>Having a hard time figuring this out.  </p>