<html>
<form name="myForm">
<input type="checkbox" value="YES" name="myCheckBox" checked>
</form>
<script language="JavaScript">
<!--
if(document.myForm.myCheckBox.form == document.myForm)
alert("myCheckBox's form property is equal to myForm object"); //Equal
else
alert("myCheckBox's form property is NOT equal to myForm object"); //Not equal
-->
</script>
</html>
|