Click to See Complete Forum and Search --> : Activate a submit button


KEITHS
04-04-2003, 04:50 AM
This should be simple but I am pulling my hair out . I need to to activate(highlight) a submit button onLoad, So's the user just has to hit enter when completeing a form.

Any help greatly appreciated.

K

gil davis
04-04-2003, 05:38 AM
I need to to activate(highlight) a submit button onLoad, So's the user just has to hit enter when completeing a form.You can use focus() on the button, but as soon as the user starts "completeing a form", the focus is lost.

Perhaps what you really want is a way to submit() the form using the enter key. If so, try this link:

http://www.faqts.com/knowledge-base/view.phtml/aid/3946/fid/129

KEITHS
04-04-2003, 06:24 AM
Many thanks Gil,

That is exactly what I am looking for.

Regards

Kieth