Wednesday, April 14, 2004

Modeless (modal) Dialog boxes


JavaScript features several built-in dialog boxes: window.alert(), window.confirm(), and window.prompt(). When a dialog box pops up, the user cannot focus on the original page until the box is terminated. In other words, a dialog box is always focused.
Internet Explorer supports a few methods that enable you to apply this feature to any new window:

- showModalDialog() (Internet Explorer 4 and above)
- showModelessDialog() (Internet Explorer 5 and above)

...