in reply to Re^2: Perl/CGI : Need to execute button when i enter "Enter" key
in thread (OT) Need to execute button when i enter "Enter" key

I have multiple submit buttons...

Bad karma, but if you must (and yes, there can be a few valid reasons to do so)... make your desired default submit button the first in the form (test... different browsers may behave differently), and make the other buttons "buttons" instead of "submit". Then make those "button" buttons fire a JavaScript submit() with the appropriate action value in a hidden field.

  • Comment on Re^3: (OT) Need to execute button when i enter "Enter" key