By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,384 Members | 1,794 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,384 IT Pros & Developers. It's quick & easy.

Pressing enter to submit form

P: n/a
Hi. I have a user who wants his form submitted when he presses [Enter].
Is it possible? If so, how?
Oct 13 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Dennis Allen wrote:
Hi. I have a user who wants his form submitted when he presses [Enter].
Is it possible? If so, how?

That is the default behaviour for forms with a submit button in both IE
and Firefox (and by extension I guess, without testing, Mozilla et al).

Do you have a particular browser that doesn't do it? From memory, old
Netscape only submitted if the submit button was in focus.

--
Rob
Oct 13 '05 #2

P: n/a
I think it is the norm for [Enter] to submit the form. Check that there
are no JS errors or too much complexity in the form if it does not
work,

Here is form wth multiple text fields that I made which submits fine on
the [Enter]

http://hotelbuysell.com/Add_Seller.php

so look at the code - its ordinary with some js validation of the
fields

Kitty
OpenSkyWebDesign.com

Oct 13 '05 #3

P: n/a
??? On most forms, I've alway had click the submit button with the mouse
cursor. Never could seem to [Tab] to one so I could hit [enter].

He wants [Enter] to submit the form, regardless of which input field he
is on...Dennis

"RobG" <rg***@iinet.net.au> wrote in message
news:PG*****************@news.optus.net.au...
Dennis Allen wrote:
Hi. I have a user who wants his form submitted when he presses
[Enter]. Is it possible? If so, how?

That is the default behaviour for forms with a submit button in both
IE and Firefox (and by extension I guess, without testing, Mozilla et
al).

Do you have a particular browser that doesn't do it? From memory, old
Netscape only submitted if the submit button was in focus.

--
Rob

Oct 13 '05 #4

P: n/a
??? On most forms, I've alway had click the submit button with the mouse
cursor. Never could seem to [Tab] to one so I could hit [enter].

He wants [Enter] to submit the form, regardless of which input field he
is on...Dennis

"MsKitty" <Ki**********@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
I think it is the norm for [Enter] to submit the form. Check that there
are no JS errors or too much complexity in the form if it does not
work,

Here is form wth multiple text fields that I made which submits fine
on
the [Enter]

http://hotelbuysell.com/Add_Seller.php

so look at the code - its ordinary with some js validation of the
fields

Kitty
OpenSkyWebDesign.com

Oct 13 '05 #5

P: n/a
Dennis Allen wrote:
??? On most forms, I've alway had click the submit button with the mouse
cursor. Never could seem to [Tab] to one so I could hit [enter].

He wants [Enter] to submit the form, regardless of which input field he
is on...[...]
As Rob wrote correctly, the latter is the default behavior in all recent
browsers. Without answering the questions that might clarify this, it
is unlikely someone here is able to help you, let alone going to do so.
[Duplicate top post]


Please read and take heed of <http://jibbering.com/faq/> before posting.
PointedEars
--
But he had not that supreme gift of the
artist, the knowledge of when to stop.
-- Sherlock Holmes
Oct 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.