IHTMLWindow2 interface
This interface provides access to the window object, which represents an open window in the browser.
Members
The IHTMLWindow2 interface inherits from the IDispatch interface but does not have additional members.
Remarks
The window object is used to retrieve information about the state of the window. It also is used to gain access to the document in the window, to the events that occur in the window, and to features of the browser that affect the window.
Typically, the browser creates one window object when it opens an HTML document. However, if a document defines one or more frames—that is, contains one or more frame or iframe tags—the browser creates one window object for the original document and one additional window object for each frame.
These additional objects are child windows of the original window and can be affected by actions that occur in the original. For example, closing the original window causes all child windows to close. You can also create new windows and corresponding window objects by using methods such as IHTMLWindow2::open and IHTMLWindow2::showModalDialog.
This interface may also be referred to in code as IOmWindow2.
Requirements
|
Minimum supported client | Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also
- Reference
- IHTMLWindow3
- IHTMLWindow4
- IHTMLWindow5
Build date: 11/12/2012