Mega Code Archive

 
Categories / JavaScript DHTML / Form Control
 

Methods and Properties of the Button Object

Method +-----------+----------+----------------------------------------------------+                 blur()      Removes focus from the button. +-----------+----------+----------------------------------------------------+                  click()     Invokes a click event for that button. +-----------+----------+----------------------------------------------------+                  focus()     Applies focus to a button. +-----------+----------+----------------------------------------------------+                 handleEvent()Passes an event to the appropriate event handler                           associated with a button.  +-----------+----------+----------------------------------------------------+      Property +-----------+----------+----------------------------------------------------+                  form        Returns the Form object of which the button is a member. +-----------+----------+----------------------------------------------------+                  name        Returns the string that is specified in the name                           attribute of the HTML <input> tag. +-----------+----------+----------------------------------------------------+                  type        Returns the string specified in the type                           attribute of the HTML <input> tag. This string is                           always button for the Button object. +-----------+----------+----------------------------------------------------+                  value       Returns the string that appears in the graphical                           representation of a button.