ascx control not triggering javascript
<p>My .ascx has below pieces</p>

<pre><code>function confirmationDelete()
   {     
        var r = confirm("Are you sure you want to delete this target");
        if (r == true) {
            return true;
        } else {
            return false;
        } 
    }


&lt;asp:Button ID="btnDeleteTarget" runat="server" Text="Delete Target"  CssClass="btnDeleteTargetClass"  ValidationGroup="validateformgroup" CausesValidation="true"   OnClick="btnDeleteTarget_Click"  Visible="False" /&gt;
</code></pre>

<p>ascx.cs has below line</p>

<pre><code>btnDeleteTarget.OnClientClick = "return confirmationDelete()";
</code></pre>

<p>I am still not getting confirmation prompt. page just refreshes. What am i doing wrong? </p>

<p>tried putting breakpoint in developer toolbar, but its not calling my JS function. </p>