Latest web development tutorials

HTML DOM Video muted property

Video Object Reference Video Object

Examples

Off video sound:

. Document.getElementById ( "myVideo") muted = true;

try it"

Definition and Usage

muted property sets or returns whether the video should be muted (turn off the sound).

This property reflects the <video> muted property.

When the attribute is present, it describes the state of the video output is muted.

Note: <video> element in HTML5 is new.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the muted property

Note: Internet Explorer 8 and earlier versions of IE do not support the <video> element.


grammar

Back muted attributes:

videoObject .muted

Setting muted properties:

videoObject .muted = true | false

Property Value

value description
true | false Sound Specifies whether video output is muted.
  • true - Indicates should turn off the video sound.
  • false - default. Instructions should open video sound.

technical details

return value: Boolean value that, if the video output voice is muted returns true, otherwise it returns false.
Default Value: false


More examples

Examples

See if the sound off:

var x = document.getElementById ( "myVideo") muted.;
x The output is:
true

try it"


Related Pages

HTML Reference Manual: HTML <Video> the muted property


Video Object Reference Video Object