title: How can I get the javascript event object inside a event handler?
body: <p>I have a div with onclick param:</p>
  
  <pre><code>&lt;div onclick="some_function()"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>How can I access the event object inside the function? I need it to get event.target</p>
  
  <pre><code>function some_function() 
  {
  event = event || window.event;
  var target = event.target || event.srcElement;
  //does not work in IE and Firefox, but works in chrome
  }
  </code></pre>