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.