<script type="text/JavaScript">
function showCharCodeandALT(e){
alert(
"Key Pressed: " + String.fromCharCode(e.charCode) + "\n"
+ "charCode: " + e.charCode + "\n"
+ "ALT key pressed: " + e.altKey + "\n"
);
}
</script><body onkeypress="showCharCodeandALT(event);">