title: Href to download and onclick to anchor link
body: <p>Maybe I'm going about this the wrong way (I wouldn't be too surprised) or maybe it's just not possible. I have links that when clicked on, download a file. I would also like to have these links show a lightbox. I can easily get them to do one or the other, but not both. The links are also being created through asp. The code I have right now:</p>
  
  <pre><code>&lt;asp:Label id=Label1 EnableViewState="False" runat="server" Text='&lt;%# "&lt;A  id=""launcher"" class=""track"" Href="""&amp;amp;DataBinder.Eval(Container, "DataItem.Url")&amp;amp;"""&gt;"&amp;amp;DataBinder.Eval(Container, "DataItem.Name")&amp;amp;"&lt;/A&gt;" %&gt;'&gt;
  &lt;/asp:Label&gt;
  </code></pre>
  
  <p>Within the <code>&lt;A&gt;</code>, I have tried: <code>onclick=""test();return false;""</code>, the same thing except with <code>onclientclick</code>, with and without the <code>return false;</code> (also tried <code>true</code>).</p>
  
  <p>The function I have:  </p>
  
  <pre><code>function test() {
    window.location.href="#feature";
  }
  </code></pre>
  
  <p>Problem is that it never does the onclick event. I tried putting a breakpoint at that spot, which gets hit when I click the link, but I never see the content that should be displayed. Is what I'm trying to do even possible, this way or some other way?</p>
  
  <p>jsFiddle: <a href="http://jsfiddle.net/hk3Wd/6/" rel="nofollow">http://jsfiddle.net/hk3Wd/6/</a>. This is behaving slightly differently than on the website I'm working on. On the website, the lightbox shows but no download. In that fiddle, the download starts but not lightbox.</p>