MDN self-hosted library · e01.org

HTMLMediaElement: muted property

HTML DOM

Open notebook · 1 cells web-api-instance-property upstream source

HTML DOM

The HTMLMediaElement.muted property indicates whether the media element is muted.

Value

A boolean value. true means muted and false means not muted.

Examples

const obj = document.createElement("video");
console.log(obj.muted); // false

Specifications

Browser compatibility

See also

  • HTMLMediaElement: Interface used to define the HTMLMediaElement.muted property
  • HTMLMediaElement.defaultMuted
  • HTMLMediaElement.volume