Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

createPopup method

[IHTMLWindow4::createPopup is no longer supported. Starting with Internet Explorer 11, use a div, iframe, or other element with a relatively high IHTMLRuleStyle::zIndex value. For info, see Compatibility changes.]

Creates an IHTMLPopup window object.

Syntax


 retVal = object.createPopup(varArgIn);

Parameters

varArgIn [in, optional]

Type: string

This argument is reserved.

Standards information

There are no standards that apply here.

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.