Skip to content
Related Articles

Related Articles

Improve Article

HTML | Audio/Video DOM pause Event

  • Last Updated : 16 Oct, 2019

The HTML Audio/Video DOM pause Event occurs when the Audio has been paused by the user or it will be automatically paused or stop.


  • This syntax is used in HTML
    <audio|video onpause="myScript">
  • This Syntax is used in JavaScript:
  • In JavaScript, We also using the addEventListener() method:
    audio|video.addEventListener("pause", myScript); 


<!DOCTYPE html>
        HTML Audio/Video DOM pause Event
    <h1 style="color:green">
      HTML Audio DOM pause Event
    <audio id="geeks" 
        <source src="beep.mp3"
        var aud =
        aud.onpause = function() {
            alert("Audio is paused now");



Supported Browsers: The browsers supported by Audio/Video DOM pause Event are listed below:

  • Google Chrome
  • Internet Explorer 9.0
  • Firefox
  • Apple Safari
  • Opera

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :