Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > JavaScript > Map button on f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 11 Topic 35558 of 36382
Post > Topic >>

Map button on form to key on keyboard

by MikeB <MPBrede@[EMAIL PROTECTED] > May 10, 2008 at 09:35 AM

I have a simple form that I'm using to learn something about HTML and
JavaScript.

Can I associate a button on the form with a keyboard key so that when
the user presses the keyboard key the form thinks the button has been
clicked?

Background:
I'm learning HTML and JavaScript. We did a simple JavaScript that had
a button that would add the numbers in two input fields.

I then thought it would be nice to change the form (and the
JavaScript) to make a "real" calculator.http://fmechess.org/demo/
calculator.html

What I would like to do is to make the calculator sensitive to normal
presses of the keyboard keys, so that instead of clicking on the
buttons to enter a calcualtion, the user can simply type on the
keyboard. Is this possible?

Thanks.

PS. I hope this is the right ng to ask in, I got "booted" out of the
HTML ng for asking in there.  :)
 




 11 Posts in Topic:
Map button on form to key on keyboard
MikeB <MPBrede@[EMAIL   2008-05-10 09:35:54 
Re: Map button on form to key on keyboard
"Evertjan." <  2008-05-10 18:09:38 
Re: Map button on form to key on keyboard
MikeB <MPBrede@[EMAIL   2008-05-10 13:37:45 
Re: Map button on form to key on keyboard
"Evertjan." <  2008-05-11 10:06:30 
Re: Map button on form to key on keyboard
Matthias Watermann <li  2008-05-11 14:30:52 
Re: Map button on form to key on keyboard
"Evertjan." <  2008-05-11 14:39:38 
Re: Map button on form to key on keyboard
Matthias Watermann <li  2008-05-11 18:28:36 
Re: Map button on form to key on keyboard
Thomas 'PointedEars' Lahn  2008-05-10 22:56:53 
Re: Map button on form to key on keyboard
Steve Swift <Steve.J.S  2008-05-11 07:27:56 
Re: Map button on form to key on keyboard
MikeB <MPBrede@[EMAIL   2008-05-10 14:20:48 
Re: Map button on form to key on keyboard
Mervyn Carter <Mervyn@  2008-05-11 09:35:52 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 5:14:41 CDT 2008.