You can use a confirmation dialog box as follows. If the user clicks on the Cancel button, then confirm () returns false. If the user clicks on the OK button, the window method confirm () will return true. It displays a dialog box with two buttons: OK and Cancel. If the user clicks the Cancel button, the window method prompt() returns null. A confirmation dialog box is mostly used to take user's consent on any option. Possible languages include English, Dutch, German. If the user clicks the OK button, the window method prompt() will return the entered value from the text box. English to Spanish translation results for Dialog Box Launcher designed for tablets and mobile devices. This dialog box has two buttons: OK and Cancel. This dialog box is displayed using a method called prompt() which takes two parameters: (i) a label which you want to display in the text box and (ii) a default string to display in the text box. Select to add a dialog launcher button next to the label on a Group. The user needs to fill in the field and then click OK. Many translated example sentences containing dialog box launcher French-English. Thus, it enables you to interact with the user. The prompt dialog box is very useful when you want to pop-up a text box to get user input. Click the following button to see the result: