Partager via


IHTMLDialog interface

Provides access to information about an HTML dialog box.

Members

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

  • Methods
  • Properties

Methods

The IHTMLDialog interface has these methods.

Method Description
close

Closes the current browser window or HTA.

Closes the app without prompting the user. To the user, it appears as though the app has crashed.

 

Properties

The IHTMLDialog interface has these properties.

Property Description

dialogArguments

Gets the variable or array of variables passed into the modal dialog window.

dialogHeight

Sets or gets the height of the modal dialog window.

dialogLeft

Sets or gets the left coordinate of the modal dialog window.

dialogTop

Sets or gets the top coordinate of the modal dialog window.

dialogWidth

Sets or gets the width of the modal dialog window.

returnValue

Sets or gets the value returned from the modal dialog window.

This property is not supported for Windows apps using JavaScript.

 

Remarks

The dialog object is the special window object created by the IHTMLWindow2::showModalDialog method. In the dialog window, scripts reference the dialog object as the top-level window property. There is no such dialog property in the dialog.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch