How to bind event to element?
<p>How to bind event to element in pure javascript:</p>

<p>This is what JQuery does, how do you accomplish it with pure javascript?</p>

<pre><code>$('#arrow_left')
 .bind('click', {'c_index': c_index - item_limit }, 
  function(e)
  {
   var r = e.data.c_index; 
  }
</code></pre>
