Mega Code Archive

 
Categories / JavaScript DHTML / Form Control
 

Methods and Properties of the Form Object

Method +---------+----------------+-------------------------------------------------+            handleEvent()     Calls the event handler associated with this event.             reset()           Resets form elements to their default values.            submit()          Triggers a submit event. +---------+----------------+-------------------------------------------------+   Property +---------+----------------+-------------------------------------------------+             action           Contains the action attribute of a 'form' instance. +---------+----------------+-------------------------------------------------+             elements         Array contain all the elements within 'form'. +---------+----------------+-------------------------------------------------+             encoding         Contains the enctype attribute of a 'form' instance. +---------+----------------+-------------------------------------------------+             length           Number of elements contained in the form. +---------+----------------+-------------------------------------------------+             method           Contains the method attribute of a 'form' instance. +---------+----------------+-------------------------------------------------+             name             Contains the name attribute of a 'form' instance. +---------+----------------+-------------------------------------------------+             target           Contains the target attribute of a 'form' instance. +---------+----------------+-------------------------------------------------+