Thanks, I have seen code like that, it seems a shame to check every keypress, but...
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 4:25 PM To: Struts Users Mailing List Subject: Re: submit using enter key we use this: document.onkeypress = documentKeypress; function documentKeypress(e){ var key = general_getEventKeyCode(e); if(key == 13){ search();//js action that calls document.formName.submit(); } } "LUCERO,DENNIS (HP-Boise,ex1)" <[EMAIL PROTECTED]> on 01/31/2003 05:13:22 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "' ([EMAIL PROTECTED])'" <[EMAIL PROTECTED]> cc: Subject: submit using enter key I have a form, that cannot have a submit button (unless there is some way to have it be hidden) How to I get that form to submit when the enter key is pressed. thanks We come from the land of the ice and snow With the midnight sun, where the hot springs glow The hammer of the gods, will drive our ships to new lands Fight the horde, Sing and cry Valhalla I am coming --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

