Methods and Properties of the Button Object : Button : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » Button »

 

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.
           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Form Control
» Button