Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1803 Why won't the form submit() method work?

irt.org | Knowledge Base | JavaScript | Form 7.3 | Q1803 [ previous next ]

Q1803 Why won't the form submit() method work?

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.