Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IHTMLWindow3 interface

This interface provides access to additional methods of the window object, which represents an open window in the browser.

Members

The IHTMLWindow3 interface inherits from the IDispatch interface. IHTMLWindow3 also has these types of members:

Methods

The IHTMLWindow3 interface has these methods.

MethodDescription
attachEvent

Note   IHTMLWindow3::attachEvent is no longer supported. Starting with IE11, use IEventTarget::addEventListener. For info, see Compatibility changes.

Binds the specified function to an event, so that the function gets called whenever the event fires on the object.

detachEvent

Unbinds the specified function from the event, so that the function stops receiving notifications when the event fires.

print

Prints the document associated with the window.

setInterval

Evaluates an expression each time a specified number of milliseconds has elapsed.

setTimeout

Evaluates an expression after a specified number of milliseconds has elapsed.

showModelessDialog

Creates a modeless dialog box that displays the specified HTML document.

 

Properties

The IHTMLWindow3 interface has these properties.

PropertyDescription

files

Retrieves the local image files associated with a HTML paste operation (into an editable region of a web page).

onafterprint

Sets or retrieves a pointer to the event handler function that is called when the HTMLWindowEvents::onafterprint event is raised.

screenLeft

Retrieves the x-coordinate of the upper left-hand corner of the window frame, relative to the upper left-hand corner of the screen.

screenTop

Retrieves the y-coordinate of the top corner of the client area, relative to the top corner of the screen.

 

Requirements

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

Reference
IHTMLWindow2
IHTMLWindow4
IHTMLWindow5

 

 

Community Additions

Show:
© 2014 Microsoft