I have a form which contains input element
<form name='myform'>
<input name='submit'>
</form>
How do I call forms['myform'].submit()? forms['myform'].submit refers to input element an not the function.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Steal the submit method from another form
This will not work in IE6. Changing the name of the submit button is the safer, more reliable, simpler option.