This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to deny the Enter key press action 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 "How to deny the Enter key press action" Watch "How to deny the Enter key press action" New topic
Author

How to deny the Enter key press action

Harish Muthuraman
Greenhorn

Joined: Jun 10, 2010
Posts: 11
I have a text box in the .jsp file.
Present condition : when the user enters the value in the text field and hits 'Enter' key the page is submitted.
Required : When Enter key is hit, the page must not be submitted.

Can any one help??


With Regards
Harish M
Avishkar Nikale
Ranch Hand

Joined: Aug 06, 2010
Posts: 173
This is more of a HTML/Javascript question & you will need to learn javascript events to this.

Enough help will be available on forum & internet.

http://www.coderanch.com/t/115776/HTML-JavaScript/Form-Submit-Hitting-Enter-key


Regards,
Avishkar Nikale
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

Moved to the HTML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to deny the Enter key press action
 
Similar Threads
basic doubt
Pressing enter key submits page
Enter key form submission
HTML qn=== Urgent!!!
Strange - Page Submits!!!