[thelist] javascript confirm - oops

.jeff jeff at members.evolt.org
Wed Nov 21 15:24:09 CST 2001


cayley,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Cayley Vos
>
> http://www.afreedish.com/promotions/starbandfaq.html
>
> im having a little discrepancy with a script.  It
> returns a confirm popup window, but clicking on either
> cancel or ok allows the user to continue, not something
> i want to have happen.  Clicking cancel should simply
> keep the user in the same page.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

your tos() function isn't returning the results of the confirm() dialog to
the onsubmit event handler.  you need to preface it with the return
statement.

function tos()
{
  return confirm(message);
}

good luck,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/






More information about the thelist mailing list