Click to See Complete Forum and Search --> : Enter key in a form
HosoiRamen
11-25-2003, 02:40 PM
I'm trying to figure out how to change the form I have so that when the user presses enter, it acts as if the submit button has been pressed. I'm certain it can be done, I just can't remember now.
Any ideas?
gil davis
11-25-2003, 02:43 PM
http://www.faqts.com/knowledge-base/view.phtml/aid/3946/fid/129
HosoiRamen
11-25-2003, 03:53 PM
Is there anyway to do it just using HTML?
gil davis
11-25-2003, 04:02 PM
If there are only text boxes in a form and no submit button, the "enter" key will submit the form. Otherwise, it's script.
ray326
11-25-2003, 10:44 PM
Originally posted by HosoiRamen
Is there anyway to do it just using HTML?
There is a very nasty way of doing this by using multiple forms on the page, each containing at most one text box. Even there you end up having to use Javascript to preprocess the form data before submitting it.