Skip to content

Instantly share code, notes, and snippets.

@nus
Created April 28, 2011 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nus/946106 to your computer and use it in GitHub Desktop.
Save nus/946106 to your computer and use it in GitHub Desktop.
音声入力APIテスト。イベントリスナーを指定したけど呼ばれない。どうしてだ?
<html>
<head>
<meta charset="utf-8">
<title>x-webkit-speech test</title>
<script>
function onchange() {
alert("changed");
}
</script>
</head>
<body>
<input type="text" x-webkit-speech onwebkitspeechchange="onchange();" />
<!--
onchange関数が呼ばれない。どうしてだ?
検証した環境:Google Chrome 11.0.696.57 on Mac OS X v10.6.6-->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment