|
June 13, 2000 Modal Windows in Netscape Tips: June 2000
Yehuda Shiran, Ph.D.
|
|
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:
You can achieve a similar effect in Navigator by specifying the onBlur event handler:
If you use the above event handler in the
For more on modal windows, go to Working with Windows - Dialog Boxes.
People who read this tip also read these tips: Look for similar tips by subject: |