Easy Tutorial
❮ Att Td Valign Att Textarea Name ❯

HTML Audio/Video DOM volume Property

HTML Audio/Video DOM Reference Manual

Example

Set the video volume to 20%:


Definition and Usage

The volume property sets or returns the current volume of the audio/video.


Browser Support

All major browsers support the volume property.

Note: Internet Explorer 8 and earlier versions do not support this property.


Syntax

Set the volume property:

Return the volume property:

Property Values

Value Description
volumevalue Specifies the current volume of the audio/video. It must be a number between 0.0 and 1.0. <br>Example values: 1.0 is the highest volume (default) <br>0.5 is half volume (50%) <br>0.0 is muted

Technical Details

Return Value: Numeric value indicating the current volume.
Default Value: 1.0
--- ---
❮ Att Td Valign Att Textarea Name ❯