title: Trigger a button click from a non-button element
body: <p>How would you trigger a click event from an element that supposedly does not have native clickable behaviours?</p>
  
  <p>For example, I know that you could simply just use the following:</p>
  
  <pre><code>document.getElementById('x').click();
  </code></pre>
  
  <p>But what happens if 'x' is a 'DIV'? I have an implementation, and it doesn't seem to trigger... I get the error (chrome 12):</p>
  
  <pre><code>Uncaught TypeError: Object #&lt;HTMLDivElement&gt; has no method 'click'
  </code></pre>
  
  <p>Ideas?</p>
  
  <p>Quick Edit - I'm looking for vanilla JS here... I like reinventing the wheel in my image... :-)</p>