Compartilhar via


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
  • Properties

Methods

The IHTMLWindow3 interface has these methods.

Method Description
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.

Property Description

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.

onbeforeprint

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

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

IDispatch

Reference

IHTMLWindow2

IHTMLWindow4

IHTMLWindow5