Export (0) Print
Expand All

show method

Displays a pop-up window on the screen.

This method is not supported for Windows Store apps using JavaScript.

Syntax


HRESULT retVal = object.show(x, y, w, h, pElement);

Parameters

x [in]

Type: long

Long integer that specifies the x-coordinate of the pop-up window, in pixels.
y [in]

Type: long

Long integer that specifies the y-coordinate of the pop-up window, in pixels.
w [in]

Type: long

Long integer that specifies the width of the pop-up window, in pixels.
h [in]

Type: long

Long integer that specifies the height of the pop-up window, in pixels.
pElement [in, optional]

Type: VARIANT

Pointer to a VARIANT that specifies the element to which the x andy coordinates are relative. If none is given, the x and y coordinates are relative to the desktop, where (0,0) is the upper left corner.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

There are no standards that apply here.

Remarks

A popup object is set to the same zoom level as the parent window.

Windows Internet Explorer 8. Pop-up windows zoom by default; this behavior cannot be changed. This only applies to pop-up windows created with IHTMLWindow4::createPopup.

See also

Reference
IHTMLWindow4::createPopup
IHTMLPopup::hide
IHTMLPopup::document
IHTMLPopup::isOpen
Conceptual
Using the Popup Object

 

 

Community Additions

ADD
Show:
© 2014 Microsoft