www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Methods
 show Method
show Method

Displays the pop-up window on the screen.

Syntax

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.

Example

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 >
</body>
</html>

Standards Information

There is no public standard that applies to this method.

Applies To

popup

See Also

Using the Popup Object, createPopup, hide, document, isOpen
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG