title: html input onchange doesn't accept anonymous function
body: <p>Why does this not work?</p>
  
  <pre><code> &lt;input type="file" id="kmlFiles2" multiple onchange="function(){alert('why does this not work')}()"&gt;
  </code></pre>
  
  <p>chrome gives me an error, 
  <em>Uncaught SyntaxError: Unexpected token (</em>.</p>
  
  <p>Firefox tells me <em>SyntaxError: function statement requires a name</em>.</p>
  
  <p>But this does work?</p>
  
  <pre><code> &lt;input type="file" id="kmlFiles2" multiple onchange="alert('but this does work')"&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/ewzyV/" rel="noreferrer">http://jsfiddle.net/ewzyV/</a></p>
  
  <p>I am asking because I was was trying to use and MVC framework that injects code into the onchange event.</p>