Hi Wally.
Firstly: this is a ColdFusion forum, as you know. However
you're asking a
Javascript question... this is not really the best place to
be asking such
things, for dual reasons of "appropriateness" and "likelihood
to get
answers (depending on the complexity of the question)".
But anyway, what you need to do is to tell the event handler
to return its
result.
onclick="return confirmForm()"
A couple of other observations:
The "language" attribute of <script> is deprecated. You
should be using
the "type" attribute.
http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.1
Also I think you might want to put curly braces around you
"else" block in
your function. Without curly braces, only the ONE subsequent
instruction
is considered the ELSE option. I suspect the return statement
is also
supposed to be in there.
As a rule of thumb: ALWAYS use curly braces around logic
blocks, as it
makes your intent clearer, and prevents accidents like this.
--
Adam