Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

onvolumechange event

Occurs when the volume is changed, or playback is muted or unmuted.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.12Internet Explorer 9

 

Syntax

Event Property object.onvolumechange = handler;
addEventListener Method object.addEventListener("volumechange", handler, useCapture)

 

Event information

SynchronousNo
BubblesNo
CancelableNo

 

Event handler parameters

handler [in]

Type: function

Event handler object.

Standards information

Remarks

The volume property of the element represents the current volume level.

The default playback volume is 1 (100 percent). The playback volume cannot be increased beyond 100 percent.

To invoke this event, do one of the following:

  • Increase or decrease the volume.
  • Mute or unmute the playback.

See also

Reference
volume
muted
Events example

 

 

Community Additions

ADD
Show:
© 2015 Microsoft