Back to Content

HTMLMediaElement: muted property

files/en-us/web/api/htmlmediaelement/muted/index.md

latest566 B
Original Source

{{APIRef("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

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("HTMLMediaElement")}}: Interface used to define the HTMLMediaElement.muted property
  • {{domxref("HTMLMediaElement.defaultMuted")}}
  • {{domxref("HTMLMediaElement.volume")}}