title: Setting oninput event with JavaScript
body: <p>The HTML5 <code>oninput</code> event is supported by some modern browsers, including Firefox 3.X</p>
  <p>However, strangely, it only seems to work with inline JavaScript:</p>
  <pre><code>&lt;input id = &quot;q&quot; oninput=&quot;alert('blah')&quot;&gt;
  </code></pre>
  <p>When I try to set it using JavaScript code, it doesn't fire.</p>
  <pre><code>var q = document.getElementById(&quot;q&quot;);
  q.oninput = function(){alert(&quot;blah&quot;);};
  </code></pre>
  <p>Is this just a bug in Firefox, or is there some reason this happens?</p>