spacer
Yehuda Shiran August 14, 2001
Creating A Modal Dialog Box
Tips: August 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Eclipse Helios Update Brings New PHP Tools
Internet Explorer 9 Ups Standards Support
JBoss Portal 5 Release Easier to Use

When creating a new window, Internet Explorer lets you generate two types of windows. The first type retains the input focus while open. The user cannot switch windows until the window is closed. This behavior is typical to dialog boxes which you need to close before continuing to other tasks. This kind of dialog box is referred to as a modal dialog box.

You create a modal dialog box with showModalDialog(). To show 010814.html in a modal dialog box, you would go:

window.showModalDialog("010814.html");
Click the following button to create a modal dialog box:

This button is defined as follows:

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

function fnOpenModal(){
  window.showModalDialog("010814.html")
}

People who read this tip also read these tips:

Look for similar tips by subject:

webref The latest from WebReference.com Browse >
Building an Ajax-driven File Uploader · Creating an ASP.NET Registration and Confirmation System · Combine Ajax and JSON to Transmit Complex Presentation Data
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
AMD Unleashes Six-Core Desktop CPU · Small Business Ecommerce Trends: Shop by Smartphone · Marketing Tips: Coupon Policies