title: How to handle Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause()
body: <p>Below is my code in aspx page to allow playing audio's of wav format in the browser but with my current code I am unable to play wav audios in Chrome browser but it works in Firefox. How can I handle this exception?</p>
  
  <pre><code>&lt;script&gt;
      window.onload = function () { document.getElementById("audio").play(); }
      window.addEventListener("load", function () { document.getElementById("audio").play(); });
  &lt;/script&gt;
  
  &lt;body&gt;
      &lt;audio id='audio' controls autoplay&gt;
          &lt;source src="Sounds/DPM317.wav" type="audio/wav" /&gt;
          Your browser does not support the audio element.
      &lt;/audio&gt;
  &lt;/body&gt;
  </code></pre>