Checkbox.form : CheckBox : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » CheckBox »

 

Checkbox.form









Syntax








document.form.checkbox.form



The form property provides access to a check box's parent Form object.












<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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» CheckBox