CuriousGuy
Programmer
IN the article :
thread216-417208 is a method for detecting if the user presses the enter key, as in the code below :
<script>
function checkKey(what){
what=window.event;
if (what.keyCode==13){alert('You pressed Enter!')}
else
alert('Not the right password')
}
document.onkeypress=checkKey;
</script>
Note that the key code for Enter is 13 (i.e. The code for Space and so forth), does anyone know where the other key codes are available.
Any help would be much appreciated
thread216-417208 is a method for detecting if the user presses the enter key, as in the code below :
<script>
function checkKey(what){
what=window.event;
if (what.keyCode==13){alert('You pressed Enter!')}
else
alert('Not the right password')
}
document.onkeypress=checkKey;
</script>
Note that the key code for Enter is 13 (i.e. The code for Space and so forth), does anyone know where the other key codes are available.
Any help would be much appreciated