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

The following table lists the members exposed by the popup object.

Attributes/Properties
PropertyDescription
document Retrieves the HTML document in a given popup window.
isOpen Retrieves a value indicating whether the popup window is open.
Methods
MethodDescription
hide Closes the pop-up window.
show Displays a pop-up window on the screen.
Prototypes
ObjectDescription
HTMLPopup Constructor New for Windows Internet Explorer 8  Defines the properties and methods inherited by objects in the HTMLPopup Constructor prototype chain.
Styles
Style attributeStyle propertyDescription
-ms-writing-modewritingMode Sets or retrieves the direction and flow of the content in the object.

Remarks

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

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 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.

This feature requires Microsoft Internet Explorer 5.5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this object.

See Also

Tags :


Community Content

Stanley Roark
anomalies - isActive is transferred, loss of clipboard, parent.method,...

1. When a popup calls up another popup,

A. isActive is cross-inherited (transferred) and will-not fire onactivate in the new popup ... (even though popup does not receive focus; and even though popup does not inherit isActive from its parent).

B. It momentarily throws itself to the new screen position, before displaying the new popup content.

2. When a popup is invoked, it also--

A. clears the clipboard, so that the browser cannot undo/redo;

B. loses cursor-visibility, albeit its position is still there;

C. defeats the mouse wheel, so that it cannot roll about the page

D. on-escape hides the parent-cursor (or sets its 'thickness' to unshown; cf other thicknesses: thin, thick)

3. N.B. Use parent.method(), to access windows-dependent methods from a popup: e.g. with(parent) clearTimeout(timerN).

4. (2008-11-23) Buttons have gone intermittent, now-usually closing the popup onclick (without involving a timer).

Tags : isactive

Page view tracker