Try this: function fSubmit() { document.forms["search the archives"].submit(); }
Sorry, don't mean to be a smart-a##, but you really should search as this very question gets answered about once a week. James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the "Open Minded Developer Network" http://www.open-tools.org/struts-atlanta > -----Original Message----- > From: Smith, Johnathan M. [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 10, 2002 12:16 PM > To: '[EMAIL PROTECTED]' > Subject: Submitting a form > > > How do you submit a form using JavaScript and struts I use to use > > function fSubmit() > { > document.forms[0].submit(); > } > > But the above code does not work any more. I need to use a image for my > submit button > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>