Freigeben über


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.

This object is not supported for Windows Store apps using JavaScript.

Members

The popup object has these types of members:

  • Methods
  • Properties

Methods

The popup object has these methods.

Method Description
hide

Closes the pop-up window.

This method is not supported for Windows Store apps using JavaScript.

show

Displays a pop-up window on the screen.

This method is not supported for Windows Store apps using JavaScript.

 

Properties

The popup object has these properties.

Property Description

document

Retrieves the HTML document in a given popup window.

This property is not supported for Windows Store apps using JavaScript.

isOpen

Retrieves a value indicating whether the popup window is open.

This property is not supported for Windows Store apps using JavaScript.

 

Standards information

There are no standards that apply here.

Remarks

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

Windows Internet Explorer 7. This object inherits the writingMode of its parent containing block.

Examples

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

<script type="text/javascript">
  var oPopup = window.createPopup();
  var oPopupBody = oPopup.document.body;
  oPopupBody.innerHTML = "Display some <strong>HTML</strong> here.";
  oPopup.show(100, 100, 200, 50, document.body);
</script>

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

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/popup/default.htm

See also

Reference

createPopup

writingMode

Conceptual

Using the Popup Object