This example demonstrates the usage of dialog utility to display various forms of dialog, including alert, confirm and prompt dialog. Three buttons have been added to this example, click one of them to open the relevant dialog box.
The predefined dialogs are used to display messages and collect user input within a web page. The following are the three types of Dialogs: Alert- Used to show errors, warnings, and information that need user awareness. Confirm - Used to get approval from user that appears before any critical action. Prompt - Used to get input from the user. See also Getting started with predefined dialogs