Unicode of the key pressed : Key Event : Event onMethod JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Event onMethod » Key Event »

 

Unicode of the key pressed




<html>
<head>
<script type="text/javascript">
function whichButton(event){
    alert(event.keyCode)
}

</script>
</head>

<body onkeyup="whichButton(event)">
<p>Press a key on your keyboard. </p>
</body>

</html>



           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Event onMethod
» Key Event