[thelist] JS: test which submit button was clicked.

Tab Alleman Tab.Alleman at MetroGuide.com
Fri Jun 4 09:19:27 CDT 2004


I have a form with multiple submit buttons, all with the same name and
different values.

In the onSubmit handler, I want to test which submit button was clicked
and do something...what property do I test?

When I test:

document.forms[formname].SubmitButtonName.value

I get "undefined".


More information about the thelist mailing list