Limited availability
The HTMLMediaElement.volume
property sets the volume at which the media will be played.
A double values must fall between 0 and 1, where 0 is effectively muted and 1 is the loudest possible value.
Examplesconst obj = document.createElement("audio");
console.log(obj.volume); // 1
obj.volume = 0.75;
Specifications Browser compatibility See also
HTMLMediaElement
: Interface used to define the HTMLMediaElement.volume
propertyHTMLMediaElement.muted
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4