lol, nice one. I use the onsubmit of the form tag, didn't think about the
details earlier.

Ade

-----Original Message-----
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: 26 August 2004 15:56
To: CF-Talk
Subject: Re: _javascript_ delete confirmation

what Stephen said (except in all lowercase for XHTML compatibility)  :)

On Thu, 26 Aug 2004 15:29:31 +0100, Stephen Moretti (cfmaster)
<[EMAIL PROTECTED]> wrote:
> 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
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to