This dispinterface provides a connection point so that an application or control can intercept events fired by an window element.
Event name Description #define for the event (for use when implementing IDispatch::Invoke) onafterprint Fires on the object immediately after its associated document prints or previews for printing. DISPID_HTMLWINDOWEVENTS2_ONAFTERPRINT onbeforeprint Fires on the object before its associated document prints or previews for printing. DISPID_HTMLWINDOWEVENTS2_ONBEFOREPRINT onbeforeunload Fires prior to a document being unloaded. DISPID_HTMLWINDOWEVENTS2_ONBEFOREUNLOAD onblur Fires when the object loses the input focus. DISPID_HTMLWINDOWEVENTS2_ONBLUR onerror Fires when an error occurs during object loading. DISPID_HTMLWINDOWEVENTS2_ONERROR onfocus Fires when the object receives focus. DISPID_HTMLWINDOWEVENTS2_ONFOCUS onhelp Fires when the user presses the F1 key while the client is the active window. DISPID_HTMLWINDOWEVENTS2_ONHELP onload Fires immediately after the client loads the object. DISPID_HTMLWINDOWEVENTS2_ONLOAD onresize Fires when the size of the object is about to change. DISPID_HTMLWINDOWEVENTS2_ONRESIZE onscroll Fires when the user repositions the scroll box in the scroll bar on the object. DISPID_HTMLWINDOWEVENTS2_ONSCROLL onunload Fires immediately before the object is unloaded. DISPID_HTMLWINDOWEVENTS2_ONUNLOAD
Stock Implementation mshtml.dll Custom Implementation Yes Header and IDL files mshtml.h, mshtml.idl Minimum availability Internet Explorer 4.0 Minimum operating systems Windows 95 , Windows NT 4.0 , Windows CE 4.0