which button is clicked?

by "Derek Lavine" <derek(at)realware.com.au>

 Date:  Mon, 20 Nov 2000 17:18:01 +1000
 To:  <hwg-languages(at)hwg.org>
 References:  hotmail
  todo: View Thread, Original
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