--- title: GlobalEventHandlers.onkeyup slug: Web/API/GlobalEventHandlers/onkeyup translation_of: Web/API/GlobalEventHandlers/onkeyup --- <div>{{ApiRef("HTML DOM")}}</div> <p><strong>onkeyup</strong> 속성은 현재 요소에서 onKeyUp 이벤트 핸들러를 반환합니다.</p> <h2 id="문법">문법</h2> <pre class="syntaxbox">element.onkeyup = <em>event handling code</em> </pre> <h2 id="예제">예제</h2> <pre class="brush: js"> <input type="text" onKeyUp="keyWasPressed(event)"> <script>function keyWasPressed(evt){ console.log(evt.keyCode) }</script> </pre> <h2 id="참고">참고</h2> <p>keyup 이벤트는 사용자가 눌렀던 키를 놓을 때 발생합니다.</p> <h2 id="명세서">명세서</h2> <p>명세 내용이 없습니다.</p>