createPopup method

[This documentation is preliminary and is subject to change.]

Creates an IHTMLPopup window object.

Syntax

IDispatch retVal = object.createPopup(varArgIn);

Standards information

There are no standards that apply here.

Parameters

  • varArgIn [in, optional]
    Type: VARIANT

    This argument is reserved.

Remarks

The pop-up window is initially in a hidden state.

Note  Documents that change the IHTMLDocument2::domain property before creating the popup object may receive an "Access is denied" error message when accessing the pop-up object. Changes made to IHTMLDocument2::domain in the calling document will not propagate to the new pop-up object; this is currently a design restriction to limit access with the pop-up object.

Windows Internet Explorer 8. Windows created with IHTMLWindow4::createPopup inherit the zoom state of windows that created them.

Windows Internet Explorer 7 and later. By default, windows created with the IHTMLWindow4::createPopup function are displayed in IE5 (Quirks) mode compatibility mode (also called "quirks" mode), regardless of the display mode of the webpage that created them. To display standards-based content in a popup window, use IHTMLPopup::document.location location to load an external document into the popup window. When you do this, the popup window will render the content according to the document compatibility mode of the loaded content. For information, see Defining Document Compatibility.

Microsoft Internet Explorer 6 for Windows XP Service Pack 2 (SP2) places several restrictions on windows created with this method. Restricted properties include size, screen position, and z-order. For more information, see About Window Restrictions.

See also

Reference

IHTMLPopup::document

IHTMLPopup::show

IHTMLPopup::hide

IHTMLPopup::isOpen

Conceptual

Using the Popup Object

 

 

Build date: 6/12/2012