Re: FORM with buttons
- From: richard <member@xxxxxxxxxxx>
- Date: Tue, 28 Oct 2008 20:42:24 -0700
On Mon, 27 Oct 2008 19:48:38 -0500, Joe <stuff@xxxxxxxxxxxxxxxxx>
wrote:
I have been scouring html help sites to figure this out, but so far have
not found it. Either it's too easy or maybe it's not possible...
I have a simple form with three buttons in a horizontal row. Actually
it ONLY has buttons, no text fields. How do I specify the SECOND button
to have focus when the form opens, such that if the user simply presses
'Return', the second button's logic is executed? It seems (unless I'm
missing something) that the first button is always defaulting to focus,
and gets executed if user presses 'Return' (if they don't click
anywhere).
Anyone know how to accomplish this? I'm fairly familiar with form HTML
(I'm using '<INPUT..' tag), so it's probably just an option or attribute
I'm not finding.
Thanks!
Have you considered the possibility of giving focus to the "enter" key
itself?
After all, a button is only an option. If you define what happens when
enter is pressed, then who cares what button has focus.
.
- Follow-Ups:
- Re: FORM with buttons
- From: Joe
- Re: FORM with buttons
- References:
- FORM with buttons
- From: Joe
- FORM with buttons
- Prev by Date: Re: Leading zero
- Next by Date: Re: Rendering noscript content only
- Previous by thread: Re: FORM with buttons
- Next by thread: Re: FORM with buttons
- Index(es):
Relevant Pages
|