Easy Tutorial
❮ Tag Article Av Prop Currentsrc ❯

HTML Audio/Video DOM volumechange Event

HTML Audio/Video DOM Reference Manual

Example

Display a message when the video volume changes:

More examples are included at the bottom of this page.


Definition and Usage

The volumechange event is triggered when the volume of an audio/video changes.

This event is invoked in the following scenarios:

Tip: Use the volume property of the Audio/Video object to set or return the volume of the audio/video.


Browser Support

The numbers in the table specify the first browser version that fully supports the event.

Event Chrome IE Firefox Safari Opera
volumechange Yes 9.0 Yes Yes Yes

Syntax

In HTML:

In JavaScript:

In JavaScript, using the addEventListener() method:

Note: The addEventListener() method is not supported in Internet Explorer 8 and earlier versions.


Supported HTML Tags: <audio> and <video>
Supported JavaScript Objects: Audio, Video
--- ---

More Examples

Example

Display a message when the volume of an audio changes:


❮ Tag Article Av Prop Currentsrc ❯