IHTMLWindow2_Interface interface

TBD.

Members

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

Methods

The IHTMLWindow2_Interface interface has these methods.

MethodDescription
alert

Displays a dialog box containing an application-defined message.

This method is not supported for Metro style apps using JavaScript.

blur

Causes the element to lose focus and fires the onblur event.

clearInterval

Cancels the interval previously started using the setInterval method.

clearTimeout

Cancels a time-out that was set with the setTimeout method.

close

Closes the current browser window or HTA.

Closes the current window.

confirm

Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.

This method is not supported for Metro style apps using JavaScript.

focus

Causes the element to receive the focus and executes the code specified by the onfocus event.

moveBy

Moves the screen position of the window by the specified x and y offset values.

This method is not supported for Metro style apps using JavaScript.

moveTo

Moves the screen position of the upper-left corner of the window to the specified x and y position.

This method is not supported for Metro style apps using JavaScript.

open

Opens a new window and loads the document specified by a given URL.

This method is not supported for Metro style apps using JavaScript.

resizeBy

Changes the current size of the window by the specified x- and y-offset.

This method is not supported for Metro style apps using JavaScript.

resizeTo

Sets the size of the window to the specified width and height values.

This method is not supported for Metro style apps using JavaScript.

scroll

Causes the window to scroll to the specified x- and y-offset at the upper-left corner of the window.

scrollBy

Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offset.

scrollTo

Scrolls the window to the specified x- and y-offset.

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.

 

 

 

Send comments about this topic to Microsoft

Build date: 1/26/2012

Community Additions

Show: