HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML onvolumechange Attribute

HTML onvolumechange Attribute



The onvolumechange attribute is used to define a script to run each time the volume of a video or audio is changed. It is invoked by:-

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


Used With:-


Elements Event
audio volumechange
video volumechange




Its syntax is:- < element onvolumechange="your_script" >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML