title: redirecting to a new page when an html 5 audio file has finished playing
body: <p>I am playing an audiobook chapter with the text and want it to automatically redirect to a new page with the next chapter text and audio when the html5 audio file finishes.</p>
  
  <p>I am not a programmer so I could use some help.</p>
  
  <p>I know I need to use the addEventListener with the ended function similiar to what is below but I do not know how to modify this to call a new page instead of a new audio file.</p>
  
  <pre><code>&lt;audio id="audio" autoplay controls src="song1.mp3" type="audio/mpeg"&gt;&lt;/audio&gt;
  &lt;script type="text/javascript"&gt;
      document.getElementById('audio').addEventListener("ended",function() {
      this.src = "song2.mp3?nocache="+new Date().getTime();
      this.play();
      });
  &lt;/script&gt;
  </code></pre>