HTML onvolumechange Attribute

HTML onvolumechange Attribute: This attribute defines a script to run each time the volume of a video or audio has been changed.

This event is invoked by:

  • Increasing or decreasing the volume
  • Muting or unmuting the media player

HTML onvolumechange Attribute

This attribute can be applied on <audio> and <video> elements.



Syntax: <element onvolumechange=”script”>

Browser Support

This attribute is supported by the following browsers:

  • Chrome
  • Firefox
  • Internet Explorer-9.0
  • Safari
  • Opera