La propiedad onkeyup devuelve un manejador para el evento onKeyUp del elemento actual.
Sintaxis
element.onkeyup = event handling code
Ejemplo
<input type="text" onKeyUp="keyWasPressed(event)">
<script>function keyWasPressed(evt){ console.log(evt.keyCode) }</script>
Notas
El evento keyup se lanza cuando el usuario suelta la tecla que ha sido presionada.
Especificaciones
Specification | Status | Comment |
---|---|---|
HTML Living Standard La definición de 'onkeyup' en esta especificación. |
Living Standard |
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!
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | ? | ? | ? | ? |
Feature | Android | Android Webview | Edge | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|---|
Basic support | ? | (Yes) | (Yes) | ? | ? | ? | ? | ? | (Yes) |