title: how to pass a parameter to a event's handler
body: <p>how to pass a parameter to a event's handler?</p>
  
  <p>here's what am trying to do, doesn't work:</p>
  
  <pre><code>for (var i = 0; i &lt; myobj.length; i++) {
  myobj[i].onmouseover = myfun(myobj[i]);
  }
  </code></pre>
  
  <p>the following doesn't work neither.    </p>
  
  <pre><code>myobj[i].onmouseover = myfun.call(myobj[i]);
  myobj[i].onmouseover = function () {myfun(myobj[i]);};
  myobj[i].onmouseover = function () {myfun.call(myobj[i]);}; 
  </code></pre>
  
  <p>Am primarily interested in why it doesn't work, and solution in the same style.</p>
  
  <p>Thanks.</p>