Yup, definately shorter but not as reusable. Fire the function I posted into a
commonfunctions .js file, and have it included in your page and you can use it
any time you need.

Andy

Quoting Adrian Lynch <[EMAIL PROTECTED]>:

> Or a shorter inline version...
>
> <input type="submit" name="submit" value="Delete" > > confirm('You sure?')" />
>
> Ade
>
> -----Original Message-----
> From: Andy Allan [mailto:[EMAIL PROTECTED]
> Sent: 26 August 2004 11:22
> To: CF-Talk
> Subject: Re: _javascript_ delete confirmation
>
>
> function confirmDelete(aURL) {
>    if(confirm("Do you really want to delete?"))
>       document.location=aURL;
> }
>
> Andy
>
> Quoting Thane Sherrington <[EMAIL PROTECTED]>:
>
> > I know I've seen this on the list before, but I can't find it in the
> > archives, and my mind is pulling a blank on this.  How do I pop up a
> > _javascript_ yes/no pop up when someone clicks on a delete button to delete
> a
> > record?
> >
> > T
> >
> >
>
> --
> [EMAIL PROTECTED]
> www.creative-restraint.co.uk
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to