title: Reduce audio volume without control
body: <p>I am looking for a way to reduce the volume of my audio automatically using the code without the control. </p>
  
  <p>I tried this code but the audio volume didn't change:</p>
  
  <pre><code>&lt;audio id= "audio1" onloadeddata="setHalfVolume()"&gt;
  &lt;source src="Audio\Jaunty Gumption.mp3"  type="audio/mp3"&gt;
  &lt;/audio&gt;
  
  &lt;script&gt;
  function setHalfVolume() {
   var myAudio = document.getElementById("audio1");  
   myAudio.volume = 0.5; //Changed this to 0.5 or 50% volume since the    function is called Set Half Volume ;)
    }
   &lt;/script&gt;
  </code></pre>