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