HTML DOM Video muted Property
THE WORLD'S LARGEST WEB DEVELOPER SITE

Video muted Property

❮ Video Object

Example

Turn off sound for a video:

document.getElementById("myVideo").muted = true;
Try it Yourself »

Definition and Usage

The muted property sets or returns whether the audio output of the video should be muted (sound turned off).

This property reflects the <video> muted attribute.

When present, it specifies that the audio output of the video should be muted.

Note: The <video> element is new in HTML5.


Browser Support

Property
muted Yes 9.0 Yes Yes Yes

Syntax

Return the muted property:

videoObject.muted

Set the muted property:

videoObject.muted = true|false

Property Values

Value Description
true|false Specifies whether the audio output of the video should be muted, or not
  • true - Indicates that the sound should should be turned OFF for the video
  • false - Default. Indicates that the sound should be turned ON for the video


Technical Details

Return Value: A Boolean, returns true if the audio output of the video is muted, otherwise it returns false
Default Value: false

More Examples

Example

Find out if the sound is turned off:

var x = document.getElementById("myVideo").muted;
Try it Yourself »

Related Pages

HTML reference: HTML <video> muted attribute


❮ Video Object