August 15, 2001 - Generating Modeless Dialog Boxes | WebReference

August 15, 2001 - Generating Modeless Dialog Boxes

Yehuda Shiran August 15, 2001
Generating Modeless Dialog Boxes
Tips: August 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

When creating a new window, Internet Explorer lets you generate two types of windows. The first type retains the input focus while open and is referred to as a modal dialog box. The second type of dialog box is referred to as a modeless dialog box. A modeless dialog box allows you to switch the input focus to another window. It continues to display even when you switch to other applications. A modeless dialog box is useful for menus and help systems. It allows the user to use the dialog box and the application window concurrently. You create a modeless dialog box with showModelessDialog(). To show 010815.html, for example, in a modeless dialog box, you would go:

window.showModelessDialog("index.html");
Click the following button to create a modeless dialog box:

This button is defined as follows:

<INPUT TYPE="button" VALUE="Push To Create" onclick="fnOpenModeless()">
The function fnOpenModeless() is defined as:

function fnOpenModeless(){
  window.showModelessDialog("010815.html")
}