File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Capture Enter Key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Capture Enter Key " Watch "Capture Enter Key " New topic
Author

Capture Enter Key

sourav sen
Greenhorn

Joined: Jul 01, 2008
Posts: 7
I'm developing a website using PHP, Javascript and MySQL.

I have a login form with a couple of textboxes and a login button. What I
want to do is capture the Enter key so that when the user presses Enter, it will behave like tab and throw the onchange event (written for each field).

I have searched the Internet for hours now trying to find out how to do it,
but any methods that I have seen do not work.

Can anyone help me do that?

Regards,
Sourav
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Reason you are not using the onsubmit handler on the form to do the validations?

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Capture Enter Key
 
Similar Threads
when press key enter then an action is performed ..
Enter key and JTable
Enter Key Code
login by clicking enter in the key board with out clicking submit button on the scree
disabling ENTER key