English
<!-- Add the following code to the <body> area--> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function showKeyCode() { var character = document.characterCode.character.value.substring(0, 1); var code = document.characterCode.character.value.charCodeAt(0); var msg = "The ASCII code of this letter "+character+" is: "+code+"."; alert(msg); } // End --> </script> <form name="characterCode"> <center>Please enter a letter: <input type="text" name="character" size="15"> <input type="button" value= "Look at the key value" onClick="showKeyCode();"> </center> </form>