All Tech Tips

popup Object

A special type of overlapped window typically used for dialog boxes, message boxes, and other temporary windows that appear separate from an application's main window.

Members Table

PropertyDescription
document Retrieves the HTML document in a given popup window.
isOpen Retrieves a value indicating whether the popup window is open.
MethodDescription
hide Closes the pop-up window.
show Displays the pop-up window on the screen.

Remarks

This object is available in script as of Microsoft Internet Explorer 5.5.

Examples

The following example demonstrates the use of the popup object. The code creates a pop-up window and displays it.

<SCRIPT LANGUAGE="JScript">
  var oPopup = window.createPopup();
  var oPopupBody = oPopup.document.body;

  oPopupBody.innerHTML = "Display some <B>HTML</B> here.";
  oPopup.show(100, 100, 200, 50, document.body);
</SCRIPT>

The following example demonstrates some different uses of the popup object.

Standards Information

There is no public standard that applies to this object.

See Also

createPopup


Copyright © 2006 alltechtips.com. All rights reserved.

This website and the materials and information you find on this website are provided "as is", without warranty of any kind, either express or implied, including without limitation any warranty for information, services, or products provided through or in connection with the service and any implied warranties of merchantability, fitness for a particular purpose, expectation of privacy or non-infringement.
Advertising
health | home | ip address | golf courses | recipes | flooring | rubber flooring | cd duplication | schools