HTML onvolumechange Attribute
Example
<video onvolumechange="myFunction()" >
Meaning
The volumechange event run when the volume has been changed.
Standard Syntax
<element onvolumechange="script">
Applies to:
The onvolumechange attribute can be used on the following element:
| Element | Attribute |
|---|---|
| <audio> | onvolumechange |
| <video> | onvolumechange |
Advertisement
Attribute Values
| Value | Description |
|---|---|
| script | Specifies a script that run when the media volume changes. |