I have overridden the default alert box with a custom dialog box. But I want the script to be paused until the cancel button on the dialog box is clicked. How to achieve it using javascript or jquery ?
P.S. : I am trying to make a dialog box which has the same functionality as an alert box.