title: Javascript: simulate a click on a link
body: <p>I have a link that has a listener attached to it (I'm using YUI):</p>
  
  <pre><code>YAHOO.util.Event.on(Element, 'click', function(){ /* some functionality */});
  </code></pre>
  
  <p>I would like to the same functionality to happen in another scenario that doesn't involve a user-click. Ideally I could just simulate "clicking" on the Element and have the functionality automatically fire. How could I do this?
  Too bad this doesn't work:</p>
  
  <pre><code>$('Element').click()
  </code></pre>
  
  <p>Thanks.</p>