title: Disabling LinkButton doesn't disable the click event in javascript
body: <p>I want to disable a <code>LinkButton</code> clink on the client site.</p>
  
  <pre><code>objLinkButton.disabled = true;
  // or 
  objLinkButton.disabled = -1;
  </code></pre>
  
  <p>This disables the link but I am still able to click on the link and do PostBack.</p>
  
  <p>Is there any way I can disable the link.</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;asp:linkbutton id="xyz" runat="server"
                  onClick="javascript:LinkDisable(this)" &gt;&lt;/asp:linkbutton&gt;
  </code></pre>
  
  <p>which renders as a link which does a postback... I am opening the page on postback in a new window.
  What I want to do is.. when I click on the link for the firsttime.. it will open a new page and then it will disable the link.</p>
  
  <p>what I am doing is .. onClick of that link I have a javascript function.. which is something like this..</p>
  
  <p>In LinkDisable ...</p>
  
  <pre><code>function LinkDisable(obj)
  {
  obj.disabled = -1;
  obj.href = '#';
  //Cant return false from here.. otherwise it wont postback...
  }
  </code></pre>
  
  <p>When I do this.. the link gets grey's out ... but I am still able to click it.  I want to stop the user from clicking it the second time.</p>
  
  <p>Any help is appreciated.</p>