HBCMS更多的中文手册参考:

show Method

DHTML文档教程

Displays the pop-up window on the screen.

dhtml语法

popup.show(iX, iY, iWidth, iHeight [, oElement])

Parameters

iX Required. Integer that specifies the x-coordinate of the pop-up window, in pixels.
iY Required. Integer that specifies the y-coordinate of the pop-up window, in pixels.
iWidth Required. Integer that specifies the width of the pop-up window, in pixels.
iHeight Required. Integer that specifies the height of the pop-up window, in pixels.
oElement Optional. Object that specifies the element to which the x,y coordinates are relative. If none is given, the x,y coordinates are relative to the desktop, where (0,0) is the upper left corner.

Return Value

No return value.

DHTML代码范例

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>

是否符合公共标准

There is no public standard that applies to this method.

Applies To

popup

更多语法参考

using the popup object, createpopup, hide, document, isOpen