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