A confirmation dialog box is displayed to replace the JavaScript standard confirm () method. There are two buttons: "yes" and "no". If you provide a callback function for it, the function will be called after the button is clicked (including the push button in the upper right corner). the id of the clicked button will be passed to the callback function as a unique parameter.
Ext. MessageBox. confirm ()
A confirmation dialog box is displayed to replace the JavaScript standard confirm () method. There are two buttons: "yes" and "no". If you provide a callback function for it, the function will be called after the button is clicked (including the push button in the upper right corner). the id of the clicked button will be passed to the callback function as a unique parameter.
Call format:
Confirm (String title, String msg, [function fn], [Object scope])
Parameter description:
Ext. MessageBox. alert (); // related content
Return Value:
Ext. MessageBox
Sample Code:
The Code is as follows: