| <html>
<head>
<title>events </title>
</head>
<body bgcolor=green text=yellow>
<h4 align =center> Type character in the textbox </h4>
<blockquote>
You will notice that the dialogbox appears before the character appears in the textbox
</blockquote>
name : <input type="text" name="t1" onkeypress="ff()">
<script>
function ff()
{
alert("ASCII Code of the key you pressed :"+ event.keyCode)
}
</script>
</body>
</html> |