Confirm dialog for the dojotoolkit, which stops code execution until the user presses either the ‘OK’ or ‘Cancel’ button. The blocking behavior is implemented using a deferred, which is returned by the show method of the dialog.
You can find more info about it by reading Creating a blocking confirm dialog with dojo and checking out the demo of the DialogConfirm widget.
+ requires dojo 1.7 or greaterThe author (Simon Speich) has placed this code in the public domain: "This code is unrestricted: you are free to use it however you like."