[thelist] JS: Calling forms submit action if there is a form element with the same name
.jeff
thelist at lists.evolt.org
Thu Dec 12 13:01:03 2002
joshua,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> 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
http://evolt.org/
jeff at members.evolt.orghttp://members.evolt.org/jeff/