[thelist] JavaScript Question - Alert box with two choices?
sarah
disaster7 at yahoo.com
Tue May 29 21:34:56 CDT 2001
Why not use confirm() instead?
something like:
msg = "Are you sure you want to do this?";
if (confirm(msg)) return true;
else return false;
or however you'd like to use it. However it will
not say Yes/No, instead it'll say OK/Cancel, as long
as thats OK.
Sarah
--- Chris Johnston <chris at completeimaging.com> wrote:
> I am looking for little JavaScript that will pop up
> an alert box and give
> the user two choices - yes or no. The purpose for
> this is to go on a
> database driven site that allows the user to delete
> a record. I want an
> alert box to pop up first that basically asks the
> person 'Are you sure you
> want to do this' - Yes or No.
>
> Any ideas?
>
> Chris
>
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
More information about the thelist
mailing list