Arrow keys and onkeypress

P

pazabo

Hi,

Does anybody know why doesn't onkeypress catch up/down arrow keys
while it catches left/right arrows? My only supposition is that up/
down keys are used for moving between form elements, anyway does
anybody know any solution to this problem?

Thanks,
Pazabo
 
E

Evertjan.

pazabo wrote on 25 mrt 2007 in comp.lang.javascript:
Does anybody know why doesn't onkeypress catch up/down arrow keys
while it catches left/right arrows?

The why is impossible to answr since, in IE7 at least,
not one of the arrow keys returns anything:

Try IE:

<body onkeypress='this.innerHTML=event.keyCode'>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top