show
Method of dom/HTMLElementdom/HTMLElement
Syntax
var object = object.show(x, y, w, h, pElement);
Parameters
x
- Data-type
- any
y
- Data-type
- any
w
- Data-type
- any
h
- Data-type
- any
pElement
- Data-type
- VARIANT
Return Value
Returns an object of type DOM NodeDOM Node
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Examples
The following example shows how to use the show method to create and display a pop-up window.
<html>
<head>
<SCRIPT LANGUAGE="JScript">
var oPopup = window.createPopup();
function window_onload() {
var oPopupBody = oPopup.document.body;
oPopupBody.style.backgroundColor = "lightyellow";
oPopupBody.style.border = "solid black 1px";
oPopupBody.innerHTML = "Display some <B>HTML</B> here.";
oPopup.show(100, 100, 200, 50, document.body);}
</SCRIPT>
</head>
<body onload="window_onload();">
</body>
</html>
Notes
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.
Syntax
Standards information
There are no standards that apply here.
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]