title: Can I stop a post back by using javascripts confirm?
body: <p>I have an aspx page with a asp.net button on the page:</p>
  
  <pre><code>&lt;asp:LinkButton ID="btn_Delete" runat="server" OnClick="btn_Delete_Click" OnClientClick="ConfirmDelete();" Text="Delete" /&gt; 
  </code></pre>
  
  <p>Confirm delete looks like this:</p>
  
  <pre><code>   function ConfirmDelete() {
         var answer = confirm("Are you SURE you want to delete this item?");
         if (!answer) {
             return false;
         }
     }; 
  </code></pre>
  
  <p>I had assumed that this would prevent the page from posting back if the user clicked cancel, but it still appears to be posting back.  Is there some way I can prevent postback using confirm?</p>