Press enter to login


#1

Hi there,

I have a login form and would like to know if there’s a way to let the
user
press enter to submit the login information as an alternative to
clicking
the login button.

Thanks!

View this message in context:
http://www.nabble.com/press-enter-to-login-tp20045312p20045312.html
Sent from the RubyOnRails Users mailing list archive at Nabble.com.


#2

Applejus wrote:

Hi there,

I have a login form and would like to know if there’s a way to let the
user
press enter to submit the login information as an alternative to
clicking
the login button.

This is really a JavaScript question…

http://www.htmlcodetutorial.com/forms/index_famsupp_157.html

Or more results from google:
http://www.google.com/search?hl=en&safe=off&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=3KH&q=javascript+submit+form+on+enter&btnG=Search

HTH,
Michael G.