title: I want to stop/skip 30 seconds on audio in HTML
body: <p>I have an audio file in html.
  I want 4 buttons there: one for play,one for pause,one for stop,one for 30 seconds skip.
  Pause/Play works. The other 2 don't. I spent 2 hours trying and searching through internet and I simply can't understand.
  Here is my code.</p>
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
  
      &lt;script&gt;
      function playsong() {
          document.getElementById(&quot;Player&quot;).play();
      }
  
      function pausesong() {
          document.getElementById(&quot;Player&quot;).pause();
      }
  
      function stopsong() {
          document.getElementById('Player').setcurrentTime();/**tried also with audio.currentTime here. Didn't worked **/
          audio.currentTime = 0;
      }
  
      function forwardAudio() {
          document.getElementById('Player').setcurrentTime(); /**tried also with audio.currentTime here. Didn't worked **/
          audio.currentTime += 30.0
  
      }
      &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;img src=&quot;http://www.example.com/foo.jpg&quot; height=&quot;300&quot; width=&quot;200&quot;&gt;
      &lt;video width=&quot;420&quot; height=&quot;340&quot; controls=&quot;controls&quot;&gt;
          &lt;source src=&quot;http://example.com/foo.mp4&quot; type=&quot;video/mp4&quot; /&gt;
          &lt;object data=&quot;movie.mp4&quot; width=&quot;420&quot; height=&quot;340&quot;&gt;
              240&quot; /&gt;
          &lt;/object&gt;
      &lt;/video&gt;
      &lt;audio controls=&quot;controls&quot; autoplay ID=&quot;Player&quot;&gt;
          &lt;source src=&quot;http://example.com/foo.mp3&quot; /&gt;
      &lt;/audio&gt;
      &lt;button type=&quot;button&quot; onclick=&quot;playsong()&quot;&gt;Play&lt;/button&gt;
      &lt;button type=&quot;button&quot; onclick=&quot;pausesong()&quot;&gt;Pauza&lt;/button&gt;
      &lt;button type=&quot;button&quot; onclick=&quot;stopsong()&quot;&gt;Stop&lt;/button&gt;
      &lt;button type=&quot;button&quot; onclick=&quot;forwardAudio()&quot;&gt;Skip 30 seconds&lt;/button&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>