HTMLDocumentEvents4 interface

Extends HTMLDocumentEvents3 with events for pinned site and media element playback.

Members

The HTMLDocumentEvents4 interface inherits from the IUnknown interface. HTMLDocumentEvents4 also has these types of members:

  • Events

Events

The HTMLDocumentEvents4 interface has these events.

Event Description
abort

Fires when the user aborts the download.

blur

Fires when the object loses the input focus.

canplay

Occurs when playback is possible, but would require further buffering.

canplaythrough

Occurs when playback to end is possible without requiring a stop for further buffering.

change

Fires when the contents of the object or selection have changed.

drag

Fires on the source object continuously during a drag operation.

dragend

Fires on the source object when the user releases the mouse at the close of a drag operation.

dragenter

Fires on the target element when the user drags the object to a valid drop target.

dragleave

Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.

dragover

Fires on the target element continuously while the user drags the object over a valid drop target.

drop

Fires on the target object when the mouse button is released during a drag-and-drop operation.

durationchange

Occurs when the duration attribute is updated.

emptied

Occurs when the media element is reset to its initial state.

ended

Occurs when the end of playback is reached.

error

Fires when an error occurs during object loading.

focus

Fires when the object receives focus.

load

Fires immediately after the client loads the object.

loadeddata

Occurs when media data is loaded at the current playback position.

loadedmetadata

Occurs when the duration and dimensions of the media have been determined.

loadstart

Occurs when Internet Explorer begins looking for media data.

onmssitemodejumplistitemremoved

Occurs when msSiteModeShowJumpList is called, and an item has been removed from a Jump List by the user.

onmsthumbnailclick

Occurs when a user clicks a button in a Thumbnail Toolbar.

onselect

Fires when the current selection changes.

pause

Occurs when playback is paused.

play

Occurs when the play method is requested.

playing

Occurs when the audio or video has started playing.

progress

Occurs to indicate progress while downloading media data.

ratechange

Occurs when the playback rate is increased or decreased.

scroll

Fires when the user repositions the scroll box in the scroll bar on the object.

seeked

Occurs when the seek operation ends.

seeking

Occurs when the current playback position is moved.

stalled

Occurs when the download has stopped.

submit

Fires when a FORM is about to be submitted.

suspend

Occurs if the load operation is intentionally halted. Starting with Microsoft Edge, also occurs if the media network state becomes NETWORK_IDLE.

timeupdate

Occurs to indicate the current playback position.

volumechange

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

waiting

Occurs when playback stops because the next frame of a video resource is not available.

 

Remarks

pinned site requires Windows 7 or later.

Requirements

Minimum supported client

Windows Vista with SP1, Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLEventObj6