Netscape6 and the KeyCode
I've got the following code in a .js file. I use it to validate a keypress event on a form posted on the web. I've chopped most of the code out of it because I want one specific problem answered.
function kp_character(e)
{
alert(e.keyCode);
}
Now then, when I hit the back key I get a value of '8', which is expected. If I hit delete I get a value of '46' (if I remember correctly), which is also expected. For some reason, ALL other number and alpha keys give me a value of '0'. The fact it comes up zero is a bad thing since I'm expecting a keycode value.
Why, oh WHY am I not getting typical keycode values?
Thanks