title: Passing event in RegisterStartUpScript not working with Firefox
body: <p>I have been battling an issue with javascript functions not being called when the call is generated using ScriptManager.RegisterStartupScript on a asp.net page.</p>
  
  <p>After a long process of elimination I have found:</p>
  
  <pre><code>&lt;script type="text/javascript&gt;
  function jim(e)
  {
  alert('Jim');
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>Now, if I call that function by putting this on a .aspx page:</p>
  
  <pre><code>&lt;span onclick="jim(event);"&gt;Show Jim&lt;/span&gt;
  </code></pre>
  
  <p>when I run the page and click the span, in Firefox, the function is called and the alert shows.</p>
  
  <p>If I try to call that function from code behind like this:</p>
  
  <pre><code>ScriptManager.RegisterStartupScript(this, this.GetType(), "M3", "jim();", true);
  </code></pre>
  
  <p>it works. The function is called and the alert shows.</p>
  
  <p>If I try to call that function from code behind like this:</p>
  
  <pre><code>ScriptManager.RegisterStartupScript(this, this.GetType(), "M3", "jim(event);", true);
  </code></pre>
  
  <p>it DOES NOT work. Nothing happens.</p>
  
  <p>So, if I include the word 'event' as a parameter, on a .aspx page - Firefox couldn't care less and it works.</p>
  
  <p>If I call the same function from code behind with the 'event' word included as a parameter, it does not work.</p>
  
  <p>If I remove the word 'event' as a parameter and call from code behind, it works. Any ideas? Driving me nuts. I need to pass 'event' to the function as IE needs it.</p>