Charlie Griefer wrote:

> I'm going to go with Andy on this one only because I've been 'taught'
> not to put an onclick event on a submit button...that a submit button
> should trigger an onsubmit.
>
> Of course, that doesn't mean you still can't keep it inline...but i'd
> put it in the <form> tag using the onsubmit event.

Yeah - definately use onSubmit for events from submit buttons.

onClick on a submit button _will_ do bizarre things and is not cross
browser compatible. The onClick may or may not get processed (depending
on which browser the user is using and how that browser is feeling that
day), because the form is already in the process of being submitted.

onClick on a "button" button is fine, but is a definate no-no on a
submit button.

Stephen
----------------------------------
Stephen Moretti - Director
Moretti Consulting Limited
http://www.moretticonsulting.net/
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to