Subj : Re: Multiple Submit Buttons
To : netscape.public.mozilla.dom,netscape.public.mozilla.jseng
From : Martin Honnen
Date : Mon Jun 21 2004 02:24 pm
Lau Lei Cheong wrote:
> Let's say that I have multiple submit buttons on a form (imagebuttons
> actually, but documentations say that which a called
> image buttons should behave like submit buttons). How could I determine
> which submit button do I invoked by calling form.submit() in javascript?
If you simply use form.submit() you do not invoke any button, you simply
submit the form with script, there is no button involved.
If the user uses a button you could use the button's onclick event
handler to somehow store the button clicked e.g.
--
Martin Honnen
http://JavaScript.FAQTs.com/
.