HTMLMediaElement: muted property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{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); // falseSpecifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- {{domxref("HTMLMediaElement")}}: Interface used to define the
HTMLMediaElement.mutedproperty - {{domxref("HTMLMediaElement.defaultMuted")}}
- {{domxref("HTMLMediaElement.volume")}}