[OCLUG-devel] JavaScript - An enhanced confirmation dialog box

Tim Nation tnation at baipro.com
Thu Jul 21 09:37:49 PDT 2005


confirmWin.document.write("<p><input type=\"button\" name=\"accept\"
value=\"Accept\" onclick=\"return true\"></p>")

confirmWin.document.write("<p><input type=\"button\" name=\"cancel\"
value=\"Cancel\" onclick=\"return true\"></p>")


Both buttons are set to return 'true' when clicked. Shouldn't the cancel
button return 'false'?

One of the main places I've turned to in the past for examples is the Script
Asylum (http://www.scriptasylum.com/) Maybe they'll have something helpful?

Tim



More information about the OCLUG-devel mailing list