Make ENTER key submit form - NOT WORKING?

A

Alexboy

Hello,

How do I make ENTER key act as a submit request?

As it is now, the user has to actually click "submit" for the form to
be submitted (in IE at least).

Is there any way to make the enter key submit the form?
Example:

http://www.surveysam.com/test2.html

Thanks!
 
D

Dylan Parry

"If I'd know it was going to be this difficult in /alt.html/, I'd have
joined the circus instead", thought Alexboy:

Works fine from here on both Firefox and IE6. You might want to remove
this though:

onkeypress="return entsub(this.form)"

As it's causing a scripting error just before the form is submitted via
the return key.
 
D

Disco Octopus

Alexboy said:
Hello,

How do I make ENTER key act as a submit request?

As it is now, the user has to actually click "submit" for the form to
be submitted (in IE at least).

Is there any way to make the enter key submit the form?
Example:

http://www.surveysam.com/test2.html

Thanks!

It will only work if your focus is on the text <input>, not the <select>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top