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

Q932 Why can't I submit my form, it fails when using form.submit()?

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

Q932 Why can't I submit my form, it fails when using form.submit()?

You are trying to submit the form object, which contains all the forms in a document, and not the actual form.

Try:

<form name="myForm">
</form>

and then:

<script language="JavaScript"><!--
document.myForm.submit();
//--></script>

or:

<script language="JavaScript"><!--
document.form['myForm'].submit;
//--></script>

Feedback on 'Q932 Why can't I submit my form, it fails when using form.submit()?'


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.