SV: [thelist] JS Boolean Object... part 2

Marcus Andersson marcan at home.se
Thu Dec 4 15:37:14 CST 2003


If you do the following:

var b = new Boolean(false);
b.err = "Some error message";
if(b.valueOf()) {
  alert("ok");
}
else {
  alert(b.err);
}

That works but I don't know if that is good enough for you though.

/Marcus



More information about the thelist mailing list