X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML Audio/Video DOM muted Property

HTML audio Tag Reference HTML Audio/Video DOM Reference

Example

Turn off sound for the video:

myVid=document.getElementById("video1");
myVid.muted=true;

Try it Yourself »

Definition and Usage

The muted property sets or returns if the audio/video should be muted (sound turned off).


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The muted property is supported in all major browsers.

Note: This property is not supported in Internet Explorer 8 and earlier.


Syntax

Set the muted property:

audio|video.muted=true|false

Return the muted property:

audio|video.muted

Property Values

Value Description
true Indicates that the sound should be turned OFF for the audio/video
false Default. Indicates that the sound should be turned ON for the audio/video

Technical Details

Return Value: Boolean, true|false
Default Value: false


HTML audio Tag Reference HTML Audio/Video DOM Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook