I have 'document.pressed ' checking in my javascript code. Problem is it is working fine in Firefox but not in Internet Explorer. I need to make it work in both the browser.
it not supposed to work in firefox either or you have not posted your code completely. why don't you try defining two functions save() and run() then call from their relative buttons
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.
Bookmarks