Topic awaiting preservation: buttons (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: KY |
posted 11-21-2001 06:10
Hey there, is it possible to program in javascript so when someone hits enter after typing in something the nearest button, or s designated button's action is started, such as when someone fills out a form and hitting enter would submit it. |
Paranoid (IV) Inmate From: Lebanon |
posted 11-21-2001 08:39
code: <form>
|
Bipolar (III) Inmate From: KY |
posted 11-21-2001 16:26
should the "event.which" be replaced with something specific for my code? |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 11-21-2001 18:59
No. |