Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML Audio/Video DOM muted Property

HTML Audio/Video DOM muted Property

HTML audio/video Tag Reference HTML Audio/Video DOM Reference

Example

Turn off the sound of the video:

myVid=document.getElementById("video1");

myVid.muted=true;

Try it »


Definition and Usage

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


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the muted attribute.

**Note:** Internet Explorer 8 and earlier versions do not support this property.


Syntax

Set the muted attribute:

audio|video

.muted=true|false

Return the muted attribute:

audio|video

.muted

Attribute values

Value Description
true Indicates that the sound of the audio/video should be turned off.
false Default. Indicates that the sound of the audio/video should be turned on.

Technical Details

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

HTML audio/video Tag Reference HTML Audio/Video DOM Reference