title: How to prevent tha page refresh after click the cancel button in confirmation alert box
body: <p>I am trying to stop the page refresh after click on the cancel button in the alert box. This the way i am trying </p>
  
  <pre><code>$(".settings").click(function(event){
   var con = (confirm("This some text. Are you sure?"))
   if (con == false)
   {
     return false;
   }
   else
   {
  
      }   
  });
  </code></pre>
  
  <p><code>.setting</code> is the gear icon class in the <code>span tag</code>. Please help me. Thank you.</p>