共用方式為


HTMLWindowEvents interface

This dispinterface provides a connection point so that an application or control can intercept events fired by an window element.

Members

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

  • Events

Events

The HTMLWindowEvents interface has these events.

Event Description
afterprint

Fires on the object immediately after its associated document prints or previews for printing.

beforeprint

Fires on the object before its associated document prints or previews for printing.

beforeunload

Fires prior to a document being unloaded.

blur

Fires when the object loses the input focus.

error

Fires when an error occurs during object loading.

focus

Fires when the object receives focus.

help

Fires when the user presses the F1 key while the client is the active window.

load

Fires immediately after the client loads the object.

resize

Fires when the size of the object is about to change.

scroll

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

unload

Fires immediately before the object is unloaded.

 

Remarks

This interface may also be referred to in code as IOmWindowEvents.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll