3 <title>Speech input test</title>
4 <script type="text/javascript">
5 function onspeechresult(value) {
6 if (value == "Pictures of the moon") {
7 document.getElementById('status').innerHTML = 'PASS';
8 document.location = '#pass';
10 document.location = '#fail';
15 <body style="padding:0; margin:0;">
16 <input id='inputField' x-webkit-speech
17 onwebkitspeechchange="onspeechresult(this.value);"
18 onchange="onspeechresult(this.value);"
19 style="position:absolute; margin:0; padding:0; border:0; width:10px;">
21 <div id="status">FAIL</div>