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.
I am not able to come up with that. Please help.