This example demonstrates the different types of Dialog like alert, confirm, and prompt. The buttons “Alert”, “Confirm”, and “Prompt” will be shown after closing the alert Dialog. These buttons are used to open the corresponding Dialogs.
The Dialog control is used to display messages such as supplementary content like images and text, and an interactive content like form components within a web page. The following are the two types of Dialogs: