Creates an IHTMLPopup window object.
HRESULT createPopup( VARIANT *varArgIn, IDispatch **ppPopup );
- [in] This argument is reserved.
- [out, retval] Address of a pointer to the IDispatch interface that receives the IHTMLPopup window object.
Returns S_OK if successful, or an error value otherwise.
The pop-up window is initially in a hidden state.Note Documents that change the document.domain property before creating the popup object may receive an "Access is denied" error message when accessing the pop-up object. Changes made to document.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.
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.