What is a Modal Dialog Window?

  • What exactly is a modal dialog window and when should you use it? Are there certain cases where you should refrain from using one?

  • A modal dialog is a window that forces the user to interact with it before they can go back to using the parent application. A great example of this would be a prompt for saving, or the "open file" dialog.

    enter image description here

    They are often used when a user is forced to make an important decision. Say you were working on a document in Microsoft Word, and you chose to exit Word before saving. A modal dialog would pop up and ask you to either Save, Don't Save, or Cancel. Until you make your decision you cannot use the application, and it will not close.

    Side question - how do most devs pronounce 'modal' in this respect? Is it pronounced the same as 'model' in `model view controller` or is it 'moe-dal'?

    Pronounced moe-dal not model

License under CC-BY-SA with attribution

Content dated before 7/24/2021 11:53 AM