hwg-languages archives | Nov 2000 | new search | results | previous | next |
which button is clicked?by "Derek Lavine" <derek(at)realware.com.au> |
|
Hi all, I am very sorry I have asked this before but can't for the life of me find the reply anywhere. I have the following <form name="form1" action="dothis.cfm" onSubmit="return checkForm(this)> <!-- other fields --> <input type="submit" name="button1" value="Button 1"> <input type="submit" name="button2" value="Button 2"> <input type="submit" name="button2" value="Button 3"> </form> What do i have to do in the checkForm() function to determine what button has been selected. I would prefer to do this than use the onClick event for each button if i can Thanks in advance Derek
HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA