HBCMS更多的中文手册参考:

createPopup Method

DHTML文档教程

Creates a popup window.

dhtml语法

opopup = window.createpopup( [vargs])

parameters

vArgs Optional. This argument is reserved for future use.

Return Value

Returns the popup window object.

Remarks

The pop-up window is initially in a hidden state.

When an element has focus and causes a popup to appear, the element does not lose focus. Because of this, an onblur event associated with an element that creates a popup will not occur when the popup is displayed.

DHTML代码范例

The following example shows how to use the createPopup method to create and display a pop-up window.

<HTML>
<HEAD>
<TITLE>Popup Example</TITLE>
<SCRIPT LANGUAGE="JScript">
var oPopup = window.createPopup();
function ButtonClick()
{
var oPopBody = oPopup.document.body;
oPopBody.style.backgroundColor = "lightyellow";
oPopBody.style.border = "solid black 1px";
oPopBody.innerHTML = "Click outside <B>popup</B> to close.";
oPopup.show(100, 100, 180, 25, document.body);
}
</SCRIPT>
</HEAD>
<BODY>
<BUTTON onclick="ButtonClick()">Click Me!</BUTTON>
</BODY>
</HTML>

是否符合公共标准

There is no public standard that applies to this method.

Applies To

window

更多语法参考

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