[thelist] JS: Calling forms submit action if there is a form element with the same name

.jeff jeff at members.evolt.org
Thu Dec 12 13:01:03 CST 2002


> From: Joshua Olson
> If the submit button on a form is called "submit", is
> there a way to call the forms submit function through
> JS?

no.  once a form variable named submit is parsed the submit() method is
overwritten with the an object to the submit element.  however, you can call
it indirectly by calling the click() method of the submit button which will
hopefully accomplish the same thing.

good luck,


jeff at members.evolt.org

More information about the thelist mailing list