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

JavaScript DHTML
C++
PHP
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.  Text field tab Index
2.  Is Text Editable
3.  Get vcard name
4.  Text Field autocomplete Example
5.  TextField focus and select all
6.  Show TextField value in Dialog
7.  TextField focus, blur, and click action
8.  Display textfield value in new page
9.  JavaScript Loan Calculator
10.  Another TextField jump
11.  TextField get Focus and clear content
12.  Validate an input field with minimum and maximum values
13.  Validate an field with a maximum number of characters
14.  Select the textfield and focus
15.  Focus an input field
16.  Jump to the next field
17.  Get textfield value
18.  Selecting Text Upon Focus
19.  assign a default value to a Text object
20.  Compound Interest Calculator
21.  Resetting a Text Object to Default Value
22.  Getting and Setting a Text Object's Value
23.  Passing a Text Object (as this) to the Function
24.  Text Object Select and Focus
25.  Data Validation via an onChange event Handler
26.  Add textfield dynamically into HTML
27.   Firing the onSame Event (FireFox)
28.  Numerals Only
29.  Letter only, yes no only textfield
30.  Auto focus textfield
31.  Block enter textfield
32.  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.