Hi,
I have a situation, when some one click on link(anchor) it should ask for confirmation. if i do normal way of JS it works fine because my method calls JS confirm() function, return true or false, if I use Ext Confirmation box, it won't stop the execution and goes ahead.
What is solution if i want to use Ext Confirmation box?

I know that MessageBox is asynchronous and it did not stop the execution. i just need an alternate and easy way to do it.

My Code
HTML
Code:
<a href="begin.do" onclick="return deleteAlert()>Delete</a>
Ext Code
Code:
    returnVar = false;
    deleteAlert = function(){
         Ext.MessageBox.confirm('Confirm', 'Are you sure you want to delete  it >",validateConfirm);        
         return returnVar;
    }
    function validateConfirm(bn)
    {       
        if(bn == "yes")
        {      
            returnVar =  true;
        }
        else
        {   
          returnVar = false;
        }
    }