P
Peter J. Veger
Has entering the Enter key the same effect as clicking a Submit button?
Can this behavior be changed in some way?
Can this behavior be changed in some way?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Peter J. Veger said:Has entering the Enter key the same effect as clicking a Submit
button? Can this behavior be changed in some way?
Yes.
No, it can't be changed.
Use the Tab key.
two pages, 50 fields, 10 textPeter J. Veger said:Thank you.
I have used
<input type="button" onclick="submitForm(event);" />
with
function submitForm(anEvent){((anEvent.target) ? anEvent.target :
anEvent.srcElement).form.submit();}
because I did want to add an image.
--

I have on my website a long form: (in papertwo pages, 50 fields, 10
text areas
Users may use Enter when filling a textarea, but if they use Enter in text
fields the form is submitted.
So in this form, restricting submit to a click on the submit button is
*not* stupid.
The form action is post; is there a way to detect by scripting that the
Enter key is used.
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.