javascript submit function arguments

When calling the submit function, what arguments can you pass, and what would they do? For example, I have a form with a select list and a button. I need the following to occur:
1. When selecting an item from the list (onChange event), submit the form and perform action A.
2. When clicking a submit button, submit the form and perform action B.

So I have a function that is called when the onChange event is fired by the select field. It simply submits the form.

document.forms.myform.submit()

Can I include an argument here to distinguish this form posting from the posting that occurs when I click the button? If not, how else can I distinguish the two postings?
[705 byte] By [pescado] at [2007-11-19 7:21:49]
# 1 Re: javascript submit function arguments
The submit function takes no arguments, it just fires the action specified in the form,
To distinguish different kind of submits, add a hidden input to the form and modify the value of that before submitting.
khp at 2007-11-8 0:20:41 >