GlobalEventHandlers.onkeyup
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 |
---|
UI Events # event-type-keyup |
HTML Standard # handler-onkeyup |
Compatibilidad con navegadores
BCD tables only load in the browser