title: First parameter to event handler
body: <p>If I have some event handlers registered inline with my markup (deprecated, I know) like</p>
  
  <pre><code> span id="..." onclick="foo(p1,p2,p3)"
  </code></pre>
  
  <p>how can I access the "event" object in the event handler function foo? Changing the above to </p>
  
  <pre><code> span id="..." onclick="foo(event,p1,p2,p3)"
  </code></pre>
  
  <p>and then using it in "foo" like</p>
  
  <pre><code>function foo(e,p1,p2,p3)
  {
     if (!e) e = window.event;
  }
  </code></pre>
  
  <p>seems to work but I don't see it documented anywhere so I am wary of using it. In other words, is the <strong>first</strong> parameter to a <strong>inline</strong> event handler always the <em>event</em> object <em>if</em> it is named as such in the onclick=... markup? Is this cross-browser so it can be safely used? And if it is not named as such (as in my first example), the parameters are treated like regular parameters and the event object is not passed?</p>
  
  <p>Thoughts? Thanks</p>