Default Button to Catch <ENTER> key

J

JP

Hi,

It's a login screen, so users enter their ID/Password and
hit <ENTER> instead of clicking on Login button. But when
they hit <ENTER> an Image Button gets clicked.

I want to make my Login Button a default so that when
users hit <ENTER> key, Login Button receives a click.

Please help!
Thanks!

JP
 
S

S. Justin Gengo

JP,

I have code to do exactly this on my web site: www.aboutfortunate.com

Just go to the code library. The entry you need is titled: "Fire a button
click from any text box when enter key is pressed"

Just jump directly to page two of the datagrid. It's the first entry on
page two.

Happy coding!

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 

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

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,999
Latest member
MakersCBDGummiesReview

Latest Threads

Top