quick js question about calling functions

  • From: Alex Hall <mehgcap@xxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Fri, 17 Apr 2009 09:36:44 -0400

Hi all,
Just a quick question: in a webpage, I have a textbox. I would like the user to be able to hit the ENTER key in this box and call a function, instead of needing to click a button. The page is a simple game meant to be played offline, so the page should not go anywhere or reload itself. Basically, I want the enter key inside a textbox to take the place of a button. Can this be done?

Have a great day,
View the list's information and change your settings at http://www.freelists.org/list/programmingblind

Other related posts: