[thelist] Simple JavaScript question
David S Gray
dascott at wam.umd.edu
Mon Aug 7 14:31:11 CDT 2000
if you want to make it even more complicated, you could do:
onclick="confirm('are you sure?')?doStuff():return false;"
of course assuming that your (captive) audience has javascript, otherwise
the click will ignore your awesome code and go to the <a href="" you
specified :(
HTH
-dave
> > But either way, you can see that this is a bit redundant; so, the
> >more efficient way is simply to return the value of the confirm() dialog,
> >whichever it is:
> >
> >return confirm("Are you sure?") ;
> >
More information about the thelist
mailing list