HTML Audio/Video DOM defaultMuted Property
HTML Audio/Video DOM Reference
Example
Set the video to be muted by default:
myVid=document.getElementById("video1");
myVid.defaultMuted=true;
Try it »
Definition and Usage
The defaultMuted property sets or returns whether the audio/video is muted by default.
Setting this attribute only changes the default mute state, not the current one. To change the current mute state, use muted attribute.
Browser support





Only Chrome and Safari 6 support the defaultMuted property.
Syntax
Set the defaultMuted attribute:
audio|video
.defaultMuted=true|false
Return the defaultMuted attribute:
audio|video
.defaultMuted
Attribute values
| Value | Description |
|---|---|
| true | Indicates that the audio/video is muted by default. |
| false | Default. Indicates that the audio/video is not muted by default. |
Technical Details
| Return Value: | Boolean value, true|false |
|---|---|
| Default value: | false |
HTML Audio/Video DOM Reference