Skip to content
Related Articles

Related Articles

HTML | DOM Audio muted Property

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 21 Feb, 2022

The Audio muted property is used to set or return whether the audio output should be muted or not.


  • It returns the muted property.
  • It sets the muted property.
    audioObject.muted = true|false

Property Values: This property accept values true|false which is used to specify whether the audio output should be muted, or not. By default. it is false. 
Returns: The Audio muted property returns a Boolean value true if the audio is muted, otherwise, it returns false.
Below program illustrates the Audio muted Property in HTML DOM:

Example: This example turn off the audio sound.

<!DOCTYPE html>
        HTML DOM Audio muted Property
<body style="text-align:center;">
    <h1 style="color:green;">
    <h2 style="font-family: impact;">
        Audio muted Property
    <audio id="Test_Audio" controls>
        <source src="gfg.ogg" type="audio/ogg">
        <source src="gfg.mp3" type="audio/mpeg">
        For muting the audio, double click
        the "Enable Mute" button.
    <button ondblclick="MyAudio()" type="button">
        Enable Mute
        var a = document.getElementById("Test_Audio");
        function MyAudio() { 
            a.muted = true;


  • Before Clicking on the button:
  • After clicking on the button:

Supported Browsers: The browsers supported by DOM Audio muted property are listed below:

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!