Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to pass the key pressed in javascript

843836Feb 26 2004 — edited Feb 26 2004
I'm asking this question here as I could not find the needed help elsewhere .

I don't know how to pass the key pressed in the function on OnKeyPress event .

I'm trying the following :

<input type="text" name="a" onKeyPress="check();">

I want to pass the key presses in the check function .
How to collect the key pressed in the function check ?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2004
Added on Feb 26 2004
6 comments
366 views