|
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
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.