Methods and Properties of the Button Object : JavaScript DHTML examples (example source code) » Form Control » Button

JavaScript DHTML
C++
Java Products
Java Articles
JavaScript DHTML Home  »   Form Control   » [  Button  ]   
 



Methods and Properties of the Button Object


/*
JavaScript Unleashed, Third Edition
by Richard Wagner and R. Allen Wyke 

ISBN: 067231763X
Publisher Sams CopyRight 2000



+-----------+----------+----------------------------------------------------+
   Type      Item        Description
+-------- --+----------+----------------------------------------------------+   
   Method
+-----------+----------+----------------------------------------------------+   
             blur()      Removes focus from the button. This method was added in 
                         JavaScript 1.1.
+-----------+----------+----------------------------------------------------+    
             click()     Invokes a click event for that button.
+-----------+----------+----------------------------------------------------+    
             focus()     Applies focus to a button. This method was added in 
                         JavaScript 1.1.
+-----------+----------+----------------------------------------------------+    
            handleEvent()Passes an event to the appropriate event handler 
                         associated with a button. This method was added in 
                         JavaScript 1.2.
+-----------+----------+----------------------------------------------------+    
 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 that is specified in the type 
                         attribute of the HTML <input> tag. This string is 
                         always button for the Button object. This property was 
                         added in JavaScript 1.1.
+-----------+----------+----------------------------------------------------+    
             value       Returns the string that appears in the graphical 
                         representation of a button.
+-----------+----------+----------------------------------------------------+    
*/
Related examples in the same category
1.  Using the onSubmit Event to Cancel a Form Submission (Internet Explorer)
2.   HTML Form with onClick Code
3.  Button set Textfield value
4.  Button click to display dialog
5.  Button Redirect
6.  Create a button
7.  Button to display the name of the form
8.  Button to display the names of all the elements in a form
9.  Animating Buttons with JavaScript
10.   Roll over one of our images.
11.  Button and Check Box Event Handling
12.  JavaScript Button action event
13.  Three Buttons Sharing One Function
14.   Running a Script from User Action
15.  Putting Script Directly in the onclick Event Handler
16.  Toggle button with hand cursor and image
17.  Button Click action
18.  Button On Click Action
19.  Button timeout








Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.