aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/globaleventhandlers/onkeyup/index.html
blob: 7ba6e8c6b680d5e516aa3dff45a7220f3b33a1cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
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"> &lt;input type="text" onKeyUp="keyWasPressed(event)"&gt;
 &lt;script&gt;function keyWasPressed(evt){ console.log(evt.keyCode) }&lt;/script&gt;
</pre>

<h2 id="참고">참고</h2>

<p>keyup 이벤트는 사용자가 눌렀던 키를 놓을 때 발생합니다.</p>

<h2 id="명세서">명세서</h2>

<p>명세 내용이 없습니다.</p>