この記事は編集レビューを必要としています。ぜひご協力ください。
window 上の input イベントのためのイベントハンドラです。input イベントは、 <input> 要素の値が変化したときに発生します。
このイベントはバブルです。window でサポートされている場合、<input> 要素でも同様にサポートされています。
例
<script>
window.addEventListener('input', function (e) {
console.log("keyup event detected! coming from this element:", e.target);
}, false);
</script>
<input placeholder="disabled">
仕様
| 仕様 | 状態 | コメント |
|---|---|---|
| WHATWG HTML Living Standard oninput の定義 |
現行の標準 | 初期定義。 |
ブラウザ実装状況
| 機能 | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| 基本サポート | (有) | 2 | 9 | 10 | (有) |
| 機能 | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| 基本サポート | ? | ? | ? | ? | (有) |
関連項目
- An HTML5 Browser maze, oninput support
- Fixing oninput in IE Using html5Widgets includes polyfill for IE6-8
- Mathias Bynens suggests binding to both input and keydown
- oninput event | dottoro has notes about bugginess in IE9
- Bug 312094 - Add support for <select oninput>