> 
> **Possible Duplicate:**  
> 
> [Can I add buttons to jQuery “alert”?](https://stackoverflow.com/questions/12636881/can-i-add-buttons-to-jquery-alert) 
> 
> 
> 

When I click OK or Cancel button in the confirmation box, both buttons will delete the data. What I wish to have is when I click OK it will delete, and when I click Cancel it will close the popup and stay at the parent page.

My confirmation box:

```
    $('#<%=delete.ClientID%>').click(function () {
        var result = confirm('Are you sure?');
    });

```