createPopup Method--------------------------------------------------------------------------------Creates a popup window.SyntaxoPopup = window.createPopup( [vArgs]) ParametersvArgs Optional. This argument is reserved for future use. Return ValueReturns the popup window object.ResThe 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. ExampleThe following example shows how to use the createPopup method to create and display a pop-up window.Hide Example<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> Standards InformationThere is no public standard that applies to this method. Applies To[ Object Name ] Platform Version Win32: Windows CE: Version data is listed when the mouse hovers over a link, or the link has focus. window Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms. Internet Explorer does not expose this member on platforms that are not listed. See AlsoUsing the Popup Object, document, show, hide, isOpen--------------------------------------------------------------------------------© 2003 Microsoft Corporation. All rights reserved.
ParametersvArgs Optional. This argument is reserved for future use. Return ValueReturns the popup window object.ResThe 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. ExampleThe following example shows how to use the createPopup method to create and display a pop-up window.Hide Example<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>
Standards InformationThere is no public standard that applies to this method. Applies To[ Object Name ]
Platform Version
Win32:
Windows CE:
Version data is listed when the mouse hovers over a link, or the link has focus.
window
Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms. Internet Explorer does not expose this member on platforms that are not listed. See AlsoUsing the Popup Object, document, show, hide, isOpen--------------------------------------------------------------------------------© 2003 Microsoft Corporation. All rights reserved.
样式表滤镜中文手册.chm
默认行为中文手册 .chm
文档对象模型.chm
网页制作完全手册.chm
样式表中文手册 .chm
VBScript 语言参考.CHM
Microsoft Windows 脚本技术.chm
JScript 语言参考 .CHM
Windows 脚本部件简介.chm