You are here: irt.org | FAQ | JavaScript | Form | 7.3 | Q1803 [ previous next ]
The submit method fails if there is a submit button named submit, for example
this does not work: <a href="javascript:document.forms.testForm.submit()">submit Form</a> <form name=testForm> <input type=submit name=submit> </form> this works: <a href="javascript:document.forms.testForm.submit()">submit Form</a> <form name=testForm> <input type=submit name=submitButton> </form>
Submitted by dlb@gmx.ch