HTMLMediaElement: muted property
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
Specification |
---|
HTML Standard # dom-media-muted-dev |
Browser compatibility
BCD tables only load in the browser
See also
HTMLMediaElement
: Interface used to define theHTMLMediaElement.muted
propertyHTMLMediaElement.defaultMuted
HTMLMediaElement.volume