NN n/a, IE 4
You want to stop script processing while a modal dialog window appears, and then capture user-entered values from the dialog window to continue processing.
Internet Explorer 4 and later (both Windows and Macintosh versions)
window object method that displays a
true modal dialog window (preventing user
access to the main window until the dialog window closes). IE 5 or
later for Windows provides an additional choice that creates a
window, which always stays in front of the main window, but allows
access to the main window's user interface elements.
The methods are called
To use either method, begin by assembling the data or object
references you wish to pass to the dialog window (if any) as a
dialogArgs here. Find the place in your script
where you need to query the user for input, and then invoke the
var dialogAnswer = window.showModalDialog("dialog.html", dialogArgs, "dialogWidth:300px; dialogHeight:201px; center:yes");
Scripts in the document loaded into the dialog window can access the
passed arguments by reading the
window.dialogArguments property. To get values
back to the main window's script from a modal
window.returnValue property of the dialog window's document. When ...