The checked Property as a Conditional
<HTML> <HEAD> <TITLE>Checkbox Inspector</TITLE> <SCRIPT LANGUAGE="JavaScript"> function myFunction(form) { if (form.checkThis.checked) { alert("The box is checked.") } else { alert("The box is not checked at the moment.") } } </SCRIPT> </HEAD> <BODY> <FORM> <INPUT TYPE="checkbox" NAME="checkThis">Check here<P> <INPUT TYPE="button" NAME="boxChecker" VALUE="Inspect Box" onClick="myFunction(this.form)"> </FORM> </BODY> </HTML>