<html>
<form name="myForm">
<input type="button"
value="Big Button"
name="myButton">
</form>
<script language="JavaScript">
<!--
if(document.myForm.myButton.form == document.myForm)
alert("myButton's form property is equal to myForm object");
else
alert("myButton's form property is NOT equal to myForm object");
-->
</script>
</html>
|