quick js question about calling functions

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,
Alex
__________
View the list's information and change your settings at http://www.freelists.org/list/programmingblind

Other related posts: