GlobalEventHandlers.oninput
Un controlador de eventos para el evento input en la ventana. El evento input es llamado cuando el valor de un elemento <input>
ha cambiado.
Este evento se propaga. Si está soportado en la ventana, también estará soportado en elementos <input>
.
Ejemplo
<script>
window.addEventListener('input', function (e) {
console.log("Evento keyup detectado! proveniente de este elemento:", e.target);
}, false);
</script>
<input placeholder="Tipee aquí y vea la consola.">
Especificaciones
Compatibilidad con navegadores
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help! (en-US)
Característica | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Soporte básico | (Yes) | 2 | 9 | 10 | (Yes) |
Característica | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Soporte básico | ? | ? | ? | ? | (Yes) |
Vea también
- Un laberinto de navegadores HTML5, soporte para oninput
- Corrigiendo oninput en IE con html5Widgets incluye cobertura para IE6-8
- Mathias Bynens sugiere enlazando a input y keydown
- evento oninput | dottoro posee notas acerca de bugs en IE9