posted 16 years ago
I have some JavaScript that, given the name of a button, I can call the appropriate JavaScript function (in the onClick()).
But, since I have multiple submit buttons on a form, I'd like to be able to have a single JavaScript function and then do different things in a single JavaScript button based on which submit button's name was clicked.
Is there a way to determine which button was clicked via the event model, DOM, or other way within a JavaScript function that's called by multiple submit buttons?
Thanks in advance.
Mike