This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with submit  RSS feed

 
Gabriel Fox
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a Java script event handler that get fired, when a user presses the return key (enter) while using my JSP screen. Because,
i just seem to get my error page (JSP), if the user presses enter key, instead of the
submit button(or <input type="button">
All ideas will be appreciated !!!
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a dup (offtopic) of the same question here. Please don't post the same question in more than one forum. Thanks.
- Peter
 
Geeta Ramasami
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
U can track the key press using event onKeyPress.Call a function in onKeyPress and in the function use keyCode = 13 to check if it is a enter key
Geeta
 
Gabriel Fox
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cheers!!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!