본문 바로가기

jQuery/Key Event

jQuery Key Event example

jQuery Key Event 예


<!DOCTYPE html>

<html>

<head>

<meta charset="EUC-KR">

<title>jQuery Test</title>


<script type="text/javascript" src="jquery-2.1.1.js"></script>

<script type="text/javascript">


$(document).ready(function() {

$(window).keydown(function(e){

alert(e.keyCode);

})

});


</script>

</head>

<body>


</body>

</html>