IHTMLWindow2 Object



Represents the window in which an HTML document or a frame within an HTML document is displayed. The IHTMLWindow2 object provides access to a limited number of properties and methods related to the window. For access to all properties and methods, use the FPHTMLWindow2 object.
Using the IHTMLWindow2 object
Use the parentWindow property of the FPHTMLDocument object to return an IHTMLWindow2 object. The following example accesses the window in which the active document is displayed.
Dim objWindow As IHTMLWindow2
Set objWindow = ActiveDocument.parentWindow