Unicode of the key pressed : Key Event « Event « JavaScript DHTML
- JavaScript DHTML
- Event
- 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>
Related examples in the same category