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

HTML Audio/Video DOM defaultMuted Property

HTML audio Tag Reference HTML Audio/Video DOM Reference

Example

Set video to be muted by default:

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

Try it Yourself »

Definition and Usage

The defaultMuted property sets or returns if the audio/video is muted by default.

Setting this property will only change the default muted state, not the current. To change the current muted state, use the muted property.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The defaultMuted property is only supported in Chrome and Safari 6.


Syntax

Set the defaultMuted property:

audio|video.defaultMuted=true|false

Return the defaultMuted property:

audio|video.defaultMuted

Property 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, 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