Confirm dialog with dojo

The demo on this page simulates the blocking behavior of JavaScript's native window.confirm() method by using a dojo/Deferred.

The DialogConfirm.show() method is called 6 times in a loop. You can either cancel the loop, press 'OK' on each dialog or tick the checkbox and the remaining dialogs will be skipped.

For more information read my short article about the DialogConfirm widget or get the code on github.