Question about submitting a form

Hello,

Al lot of topics found about submittinf forms by using javascript, byt my answer wasn’t there…

I have a database on the web, use javascript when generating pages.

I use 2 buttons (submit and clear fields) on the webform, but if users press enter instead of clicking the first button, they see “form processed”. The actions under the button is not executed.

How can I link a ‘enter’ to that submit-button??

Thanks!!

Subject: Question about submitting a form

You can fix this by putting

‘return false’

in the onSubmit event.

This prevents the user from accidentally submitting a form by hitting enter.