onvolumechange event
[This documentation is preliminary and is subject to change.]
Occurs when the volume is changed, or playback is muted or unmuted.
Syntax
HTML Attribute | <element onvolumechange = "handler(event)"> |
Event Property | object.onvolumechange = handler; |
attachEvent Method | object.attachEvent("onvolumechange", handler) |
addEventListener Method | object.addEventListener("volumechange", handler, useCapture) |
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.12
Event information
Synchronous | No |
Bubbles | No |
Cancelable | No |
Event handler parameters
- pEvtObj [in]
Type: IHTMLEventObj
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
Build date: 1/25/2012