Yes, in IE, there is event.keyCode and in Netscape there is (I think... I'm trying to remember from my text which is not with me) event.type or something. I usually use this to check for when a user hits the enter key:
Code:
function checkEnter(evt, field)
{
if(event.keyCode == 13)
doSomething();
}
I'm typing this from memory. See the tail end of the discussion at the following link for a better-informed explanation:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.