If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

This onSubmitForm button has been mentioned in the <form action> . So when I press any one of them , the control goes to this onSubmitForm() and there it checks which button is clicked.
So writing two functions save() and run() is not possible.
Can I not somehow check which button is clicked inside the onSubmitForm. If in the 'onclick' of those two buttons I assign value '1' to them and then in onSubmitForm() if I check document.myform.Savebutton.value ==1, something like this.

Well ZABI, I could make that work. Now document.myform.action = "myscript.pl" is not working in IE. Here 'myform' is my form name and 'myscript.pl' is a script where I want the action to go upon submission of my form. thanks.