I am trying to validate a checkbox (ie4). But I have ran into an anomaly with checkboxes. The javascript code below always returns "on" . Even if I UNcheck the box. Can someone help?
-Ken
<HTML>
<HEAD>
<SCRIPT>
function myform_onsubmit() {
var str;
str = document.myform.readit.value;
alert(str);
}
</SCRIPT>
</HEAD>
<BODY>
<FORM
name=myform
method=post
action="register.asp"
onsubmit="return myform_onsubmit()">
<input type=checkbox name="readit"> Yes, I read the Terms and Conditions below.<br>
</FORM>
</BODY></HTML>