Click to return to the Reusing Browser Technology home page    
IOmNavigator::toString Me...     onabort Event     MSHTML Reference    
Web Workshop  |  Reusing Browser Technology

MSHTML Events


You can receive notification of the following events in your C++ code.

MSHTML Element Events

Event nameC++ #define for the event
onabortDISPID_HTMLELEMENTEVENTS_ONABORT
onafterupdateDISPID_HTMLELEMENTEVENTS_ONAFTERUPDATE
onbeforecopyDISPID_HTMLELEMENTEVENTS_ONBEFORECOPY
onbeforecutDISPID_HTMLELEMENTEVENTS_ONBEFORECUT
onbeforeeditfocusDISPID_HTMLELEMENTEVENTS_ONBEFOREEDITFOCUS
onbeforepasteDISPID_HTMLELEMENTEVENTS_ONBEFOREPASTE
onbeforeupdateDISPID_HTMLELEMENTEVENTS_ONBEFOREUPDATE
onblurDISPID_HTMLELEMENTEVENTS_ONBLUR
oncellchangeDISPID_HTMLELEMENTEVENTS_ONCELLCHANGE
onclickDISPID_HTMLELEMENTEVENTS_ONCLICK
oncopyDISPID_HTMLELEMENTEVENTS_ONCOPY
oncutDISPID_HTMLELEMENTEVENTS_ONCUT
ondataavailableDISPID_HTMLELEMENTEVENTS_ONDATAAVAILABLE
ondatasetchangedDISPID_HTMLELEMENTEVENTS_ONDATASETCHANGED
ondatasetcompleteDISPID_HTMLELEMENTEVENTS_ONDATASETCOMPLETE
ondblclickDISPID_HTMLELEMENTEVENTS_ONDBLCLICK
ondragDISPID_HTMLELEMENTEVENTS_ONDRAG
ondragendDISPID_HTMLELEMENTEVENTS_ONDRAGEND
ondragenterDISPID_HTMLELEMENTEVENTS_ONDRAGENTER
ondragleaveDISPID_HTMLELEMENTEVENTS_ONDRAGLEAVE
ondragoverDISPID_HTMLELEMENTEVENTS_ONDRAGOVER
ondragstartDISPID_HTMLELEMENTEVENTS_ONDRAGSTART
ondropDISPID_HTMLELEMENTEVENTS_ONDROP
onerrorDISPID_HTMLELEMENTEVENTS_ONERROR
onerrorupdateDISPID_HTMLELEMENTEVENTS_ONERRORUPDATE
onfilterchangeDISPID_HTMLELEMENTEVENTS_ONFILTERCHANGE
onfocusDISPID_HTMLELEMENTEVENTS_ONFOCUS
onhelpDISPID_HTMLELEMENTEVENTS_ONHELP
onkeydownDISPID_HTMLELEMENTEVENTS_ONKEYDOWN
onkeypressDISPID_HTMLELEMENTEVENTS_ONKEYPRESS
onkeyupDISPID_HTMLELEMENTEVENTS_ONKEYUP
onloadDISPID_HTMLELEMENTEVENTS_ONLOAD
onlosecaptureDISPID_HTMLELEMENTEVENTS_ONLOSECAPTURE
onmousedownDISPID_HTMLELEMENTEVENTS_ONMOUSEDOWN
onmousemoveDISPID_HTMLELEMENTEVENTS_ONMOUSEMOVE
onmouseoutDISPID_HTMLELEMENTEVENTS_ONMOUSEOUT
onmouseoverDISPID_HTMLELEMENTEVENTS_ONMOUSEOVER
onmouseoutDISPID_HTMLELEMENTEVENTS_ONMOUSEOUT
onmouseupDISPID_HTMLELEMENTEVENTS_ONMOUSEUP
onpasteDISPID_HTMLELEMENTEVENTS_ONPASTE
onpropertychangeDISPID_HTMLELEMENTEVENTS_ONPROPERTYCHANGE
onreadystatechangeDISPID_HTMLELEMENTEVENTS_ONREADYSTATECHANGE
onresizeDISPID_HTMLELEMENTEVENTS_ONRESIZE
onrowenterDISPID_HTMLELEMENTEVENTS_ONROWENTER
onrowexitDISPID_HTMLELEMENTEVENTS_ONROWEXIT
onrowsdeleteDISPID_HTMLELEMENTEVENTS_ONROWSDELETE
onrowsinsertedDISPID_HTMLELEMENTEVENTS_ONROWSINSERTED
onscrollDISPID_HTMLELEMENTEVENTS_ONSCROLL
onselectstartDISPID_HTMLELEMENTEVENTS_ONSELECTSTART

MSHTML Document Events

Document event nameC++ #define for the event
onafterupdateDISPID_HTMLDOCUMENTEVENTS_ONAFTERUPDATE
onbeforeupdateDISPID_HTMLDOCUMENTEVENTS_ONBEFOREUPDATE
oncellchangeDISPID_HTMLDOCUMENTEVENTS_ONCELLCHANGE
onclickDISPID_HTMLDOCUMENTEVENTS_ONCLICK
ondataavailableDISPID_HTMLDOCUMENTEVENTS_ONDATAAVAILABLE
ondatasetchangedDISPID_HTMLDOCUMENTEVENTS_ONDATASETCHANGED
ondatasetcompleteDISPID_HTMLDOCUMENTEVENTS_ONDATASETCOMPLETE
ondblclickDISPID_HTMLDOCUMENTEVENTS_ONDBLCLICK
ondragstartDISPID_HTMLDOCUMENTEVENTS_ONDRAGSTART
onerrorupdateDISPID_HTMLDOCUMENTEVENTS_ONERRORUPDATE
onhelpDISPID_HTMLDOCUMENTEVENTS_ONHELP
onkeydownDISPID_HTMLDOCUMENTEVENTS_ONKEYDOWN
onkeypressDISPID_HTMLDOCUMENTEVENTS_ONKEYPRESS
onkeyupDISPID_HTMLDOCUMENTEVENTS_ONKEYUP
onmousedownDISPID_HTMLDOCUMENTEVENTS_ONMOUSEDOWN
onmousemoveDISPID_HTMLDOCUMENTEVENTS_ONMOUSEMOVE
onmouseoutDISPID_HTMLDOCUMENTEVENTS_ONMOUSEOUT
onmouseoverDISPID_HTMLDOCUMENTEVENTS_ONMOUSEOVER
onmouseupDISPID_HTMLDOCUMENTEVENTS_ONMOUSEUP
onpropertychangeDISPID_HTMLDOCUMENTEVENTS_ONPROPERTYCHANGE
onreadystatechangeDISPID_HTMLDOCUMENTEVENTS_ONREADYSTATECHANGE
onrowenterDISPID_HTMLDOCUMENTEVENTS_ONROWENTER
onrowexitDISPID_HTMLDOCUMENTEVENTS_ONROWEXIT
onrowsdeleteDISPID_HTMLDOCUMENTEVENTS_ONROWSDELETE
onrowsinsertedDISPID_HTMLDOCUMENTEVENTS_ONROWSINSERTED
onselectstartDISPID_HTMLDOCUMENTEVENTS_ONSELECTSTART
onstopDISPID_HTMLDOCUMENTEVENTS_ONSTOP

MSHTML Element Events2

Event nameC++ #define for the event
onabortDISPID_HTMLELEMENTEVENTS2_ONABORT
onafterupdateDISPID_HTMLELEMENTEVENTS2_ONAFTERUPDATE
onbeforecopyDISPID_HTMLELEMENTEVENTS2_ONBEFORECOPY
onbeforecutDISPID_HTMLELEMENTEVENTS2_ONBEFORECUT
onbeforeeditfocusDISPID_HTMLELEMENTEVENTS2_ONBEFOREEDITFOCUS
onbeforepasteDISPID_HTMLELEMENTEVENTS2_ONBEFOREPASTE
onbeforeupdateDISPID_HTMLELEMENTEVENTS2_ONBEFOREUPDATE
onblurDISPID_HTMLELEMENTEVENTS2_ONBLUR
oncellchangeDISPID_HTMLELEMENTEVENTS2_ONCELLCHANGE
onclickDISPID_HTMLELEMENTEVENTS2_ONCLICK
oncopyDISPID_HTMLELEMENTEVENTS2_ONCOPY
oncutDISPID_HTMLELEMENTEVENTS2_ONCUT
ondataavailableDISPID_HTMLELEMENTEVENTS2_ONDATAAVAILABLE
ondatasetchangedDISPID_HTMLELEMENTEVENTS2_ONDATASETCHANGED
ondatasetcompleteDISPID_HTMLELEMENTEVENTS2_ONDATASETCOMPLETE
ondblclickDISPID_HTMLELEMENTEVENTS2_ONDBLCLICK
ondragDISPID_HTMLELEMENTEVENTS2_ONDRAG
ondragendDISPID_HTMLELEMENTEVENTS2_ONDRAGEND
ondragenterDISPID_HTMLELEMENTEVENTS2_ONDRAGENTER
ondragleaveDISPID_HTMLELEMENTEVENTS2_ONDRAGLEAVE
ondragoverDISPID_HTMLELEMENTEVENTS2_ONDRAGOVER
ondragstartDISPID_HTMLELEMENTEVENTS2_ONDRAGSTART
ondropDISPID_HTMLELEMENTEVENTS2_ONDROP
onerrorDISPID_HTMLELEMENTEVENTS2_ONERROR
onerrorupdateDISPID_HTMLELEMENTEVENTS2_ONERRORUPDATE
onfilterchangeDISPID_HTMLELEMENTEVENTS2_ONFILTERCHANGE
onfocusDISPID_HTMLELEMENTEVENTS2_ONFOCUS
onhelpDISPID_HTMLELEMENTEVENTS2_ONHELP
onkeydownDISPID_HTMLELEMENTEVENTS2_ONKEYDOWN
onkeypressDISPID_HTMLELEMENTEVENTS2_ONKEYPRESS
onkeyupDISPID_HTMLELEMENTEVENTS2_ONKEYUP
onloadDISPID_HTMLELEMENTEVENTS2_ONLOAD
onlosecaptureDISPID_HTMLELEMENTEVENTS2_ONLOSECAPTURE
onmousedownDISPID_HTMLELEMENTEVENTS2_ONMOUSEDOWN
onmousemoveDISPID_HTMLELEMENTEVENTS2_ONMOUSEMOVE
onmouseoutDISPID_HTMLELEMENTEVENTS2_ONMOUSEOUT
onmouseoverDISPID_HTMLELEMENTEVENTS2_ONMOUSEOVER
onmouseoutDISPID_HTMLELEMENTEVENTS2_ONMOUSEOUT
onmouseupDISPID_HTMLELEMENTEVENTS2_ONMOUSEUP
onpasteDISPID_HTMLELEMENTEVENTS2_ONPASTE
onpropertychangeDISPID_HTMLELEMENTEVENTS2_ONPROPERTYCHANGE
onreadystatechangeDISPID_HTMLELEMENTEVENTS2_ONREADYSTATECHANGE
onresizeDISPID_HTMLELEMENTEVENTS2_ONRESIZE
onrowenterDISPID_HTMLELEMENTEVENTS2_ONROWENTER
onrowexitDISPID_HTMLELEMENTEVENTS2_ONROWEXIT
onrowsdeleteDISPID_HTMLELEMENTEVENTS2_ONROWSDELETE
onrowsinsertedDISPID_HTMLELEMENTEVENTS2_ONROWSINSERTED
onscrollDISPID_HTMLELEMENTEVENTS2_ONSCROLL
onselectstartDISPID_HTMLELEMENTEVENTS2_ONSELECTSTART

Interface Information

Implementation Mshtml.dll
Inherits from None
Header and IDL files Mshtml.h, Mshtml.idl
Minimum availability Internet Explorer 5
Minimum operating systems Windows 95, Windows NT 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.