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

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



Methods and Properties of the Text Object


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

ISBN: 067231763X
Publisher Sams CopyRight 2000



+------------+----------------+------------------------------------------+
  Type        Item              Description
+------------+----------------+------------------------------------------+
  Method
+------------+----------------+------------------------------------------+
              blur()            Removes the focus from the text box.
+------------+----------------+------------------------------------------+
              focus()           Gives the focus to the text box.
+------------+----------------+------------------------------------------+
              handleEvent()     Invokes the default handler for the specified 
                                event. This method was added in JavaScript 1.2.
+------------+----------------+------------------------------------------+
              select()          Selects the text in the text box.
+------------+----------------+------------------------------------------+
 Property
+------------+----------------+------------------------------------------+
              defaultValue      Returns the value of this text box, specified 
                                by the value attribute. Note that this property 
                                is not supported by Opera browsers.
+------------+----------------+------------------------------------------+
              form              Returns the entire form the text box is in.
+------------+----------------+------------------------------------------+
              name              Returns the name of this text box, specified 
                                by the name attribute.
+------------+----------------+------------------------------------------+
              type              Returns the type of this text box, specified 
                                by the type attribute. This is always text; 
                                it was added in JavaScript 1.1.
+------------+----------------+------------------------------------------+
              value             Returns the value that is actually displayed 
                                in the text box.
+------------+----------------+------------------------------------------+
*/
Related examples in the same category
1.  TextField focus and select all
2.  Show TextField value in Dialog
3.  TextField focus, blur, and click action
4.  Display textfield value in new page
5.  JavaScript Loan Calculator
6.  Another TextField jump
7.  TextField get Focus and clear content
8.  Validate an input field with minimum and maximum values
9.  Validate an field with a maximum number of characters
10.  Select the textfield and focus
11.  Focus an input field
12.  Jump to the next field
13.  Get textfield value
14.  Selecting Text Upon Focus
15.  assign a default value to a Text object
16.  Compound Interest Calculator
17.  Resetting a Text Object to Default Value
18.  Getting and Setting a Text Object's Value
19.  Passing a Text Object (as this) to the Function
20.  Text Object Select and Focus
21.  Data Validation via an onChange event Handler
22.  Add textfield dynamically into HTML
23.   Firing the onSame Event (FireFox)
24.  Numerals Only
25.  Letter only, yes no only textfield
26.  Auto focus textfield
27.  Block enter textfield
28.  If the textfield has been changed








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