Javascript document.form.submit() not working with Firefox 4.0

Hi

I’m trying to submit a form with javascript. Works fine with Firefox 3.6, but in Firefox4.0 and IE8 doest work fine.

Code:

<input type='hidden' name='SurveyID' value='<% $surveyid %>' Total Responses: (View All)

Javascript:

Any Idea???

Thanks ahead for any help;
Sathyan

You may get some help here by random luck because there are a lot of web developers but generaly the discussions here are focused on web performance, not general programming. You might have better luck over at stackoverflow.

Thanks for the valuable information.

try using this

document.forms[form].submit();