Easy Tutorial
❮ Prop Anchor Target Jsref Trunc ❯

Audio muted Attribute

Audio Object

Example

Turn off audio:


Definition and Usage

The muted attribute sets or returns whether the audio should be muted (turned off sound).

This attribute reflects the <audio> muted attribute.

It specifies whether the audio is muted.

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


Browser Support

All major browsers support the muted attribute.

Note: The <audio> element is not supported in Internet Explorer 8 and earlier versions.


Syntax

Return the muted attribute:

Set the muted attribute:

Attribute Values

Value Description
true false Specifies whether the audio output is muted: true - Indicates that the audio sound should be turned off.<br> false - Default. Indicates that the audio sound should be turned on.

Technical Details

Return Value: Boolean, returns true if the audio output is muted, otherwise returns false.
Default Value: false
--- ---

More Examples

Example

Check if the sound is turned off:

var x = document.getElementById("myAudio").muted;

Related Pages

HTML Reference: HTML <audio> muted Attribute


❮ Prop Anchor Target Jsref Trunc ❯