키업 사용 기인하다. onkeyup 속성은 사용자가 키를 놓을 때 트리거됩니다.
예시
다음 코드를 실행하여 키를 놓을 때 스크립트를 실행할 수 있습니다. −
<!DOCTYPE html>
<html>
<body>
<p>Press a key inside the textbox.</p>
<input type = "text" onkeydown = "display()">
<script>
function display() {
alert("You released a key!");
}
</script>
</body>
</html>