-----Original Message-----
From: Rick Root [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 22, 2004 1:12 PM
To: CF-Talk
Subject: Re: OT: _javascript_ - Return Confirm
Robert Orlini wrote:
> I'm trying to use _javascript_ to issue a popup confirm before it goes to
> a page. I'm using the "return confirm" function below which I used in a
> onSubmit. I'm kinda new to JS. Can I use the return confirm like an
> alert? It doesn't stop to confirm.
Not the way you're doing it... ick! Why don't you use it in the
onSubmit of the form?
If you must do it AFTER the user submits, then you could try this:
<CFIF IsDefined("form.add.x")>
<Script Language = "_javascript_">
if( confirm('Are you sure you want to RELEASE this PO?') )
{
window.location.href=""> }
</script>
</CFIF>
>
> Does someone have a better way? Thanks.
>
> <CFIF IsDefined("form.add.x")>
> <Script Language = "_javascript_">
> return confirm('Are you sure you want to RELEASE this PO?');
> </script>
> <CFLocation URL=""> > </CFIF>
>
> Roberto O.
> ô�ô
>
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

