Enter key in a form

liunx

Guest
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.<br />
Any ideas?<!--content-->http://www.faqts.com/knowledge-base/view.phtml/aid/3946/fid/129<!--content-->Is there anyway to do it just using HTML?<!--content-->If there are only text boxes in a form and no submit button, the "enter" key will submit the form. Otherwise, it's script.<!--content-->Originally posted by HosoiRamen <br />
Is there anyway to do it just using HTML? <br />
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.<!--content-->
 
Back
Top