title: Use x-webkit-speech in an HTML/JavaScript extension
body: <p>I am trying to use the new <code>x-webkit-speech</code> function in a simple HTML/JavaScript extension in <a href="http://en.wikipedia.org/wiki/Google_Chrome" rel="nofollow">Google Chrome</a>. I, however, have tried and tried looking at a bunch of examples and cannot get it to successfully call the function. I have seen other people do it, and I don't really get why I cannot. I put the JavaScript code into a separate file, but I include using &lt;script src="filename.js"> this is my line for the x-webkit-speech....</p>
  
  <pre><code>&lt;input id="speechInput" type="text" style="font-size:25px;" x-webkit-speech speech onwebkitspeechchange="onChange()" /&gt;
  </code></pre>
  
  <p>Now, if I change <code>onChange()</code> to <code>alert(this.value)</code>, it executes an alert box with the value of the speech input in it. So I really do not understand why I cannot just call another function. I am not the greatest JavaScript or HTML programmer, but I have researched this a great deal. Everyone defines things differently, and since there is no solid API, it is hard to really know who has the correct form, because they all seem to work somehow.</p>
  
  <p>My <code>onChange</code> function looks like</p>
  
  <pre><code>function onChange() { alert("in onChange"); } 
  </code></pre>
  
  <p>I am just trying to test and make sure it's going to the function, but I get nothing. </p>