title: Perform a jQuery event before opening up a link
body: <p>I have a simple javascript/jQuery related question:</p>
  
  <p>I have the following markup in my tumblr blog:</p>
  
  <pre><code>&lt;a href="/page/#" class="pagination"&gt;NEXT&lt;/a&gt;
  </code></pre>
  
  <p>The # above changes according to which page the user is on. ie: # is variable, and cannot be static.</p>
  
  <p>With jQuery, I would like to perform an effect (<code>slideUp();</code>, to be specific) <strong>before</strong> the new link is opened.</p>
  
  <p>Is that possible?</p>
  
  <p>I have tried both <code>.click()</code> and <code>.mousedown()</code>. Doesn't seem to work, since when I click the link, the new page opens up before any effects take place.</p>
  
  <p>I have heard of <code>preventDefault()</code>, but I'd like to shy away from that, for that would mean I must create a separate function to detect the page #, etc. (too much work~)</p>