Hi guys

I've got a form which has a submit button, when this button is pressed it calls a javascript function.

I need to be able to find out the name of the button which is pressed when the function is called, can anyone suggest a way to find this out?

so in normal speak, within the function i'd have

if (button A has been pressed){
then do this
}


many thanks