The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-dataand send us a pull request.
{{Compat("api.GlobalEventHandlers.onkeyup")}}
--- title: GlobalEventHandlers.onkeyup slug: Web/API/GlobalEventHandlers/onkeyup tags: - API - HTML DOM - Propriedade - Referencia translation_of: Web/API/GlobalEventHandlers/onkeyup ---
A propriedade onkeyup retorna o código de manipulador de eventos onKeyUp no elemento atual.
element.onkeyup = código do manipulador do eventos
<input type="text" onKeyUp="teclaPressionada(event)"> <script> function teclaPressionada(evt) { console.log(evt.keyCode) } </script>
O evento keyup é iniciado quando o usuário libera a tecla é pressionada.
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG','webappapis.html#handler-onkeyup','onkeyup')}} | {{Spec2('HTML WHATWG')}} |
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-dataand send us a pull request.
{{Compat("api.GlobalEventHandlers.onkeyup")}}