'confirm' woes

by "Michael Gerholdt" <gerholdt(at)fredonia.edu>

 Date:  Sat, 28 Oct 2000 21:36:11 -0400
 To:  <hwg-languages(at)hwg.org>
  todo: View Thread, Original
Why does this not work as expected? I cannot see my error:

function validate() {
if (nomin.nommers.options[0].value = 0) {
confirm('You choose to Abstain.\n This will conclude your voting for THIS

The confirm pops up with 'OK' and 'Cancel' but they don't really seem to
mean what they say. I've played variously with event.returnValue=true/false
and can create different behaviors, but none that I am looking for.

I want the person to click OK to continue with the operation in question,
and Cancel to back out of it. Of course.

thanks -

Michael Gerholdt
SUNY College at Fredonia

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA