| input (type="text") | NN 2 IE 3 DOM 1 |
|
| |
|
The text object is a form control generated with
an input element that has a
type attribute set to "text".
This object is the primary way of getting a user to enter single
lines of text for submission to the server.
|
| |
| HTML Equivalent |
| |
<input type="text">
|
| |
| Object Model Reference |
| |
[window.]document.formName.elementName
[window.]document.forms[i].elements[i]
[window.]document.getElementById("elementID")
|
| |
| Object-Specific Properties |
| |
| dataFld | dataSrc | defaultValue | form | maxLength |
| name | readOnly | size | type | value |
|
| |
| Object-Specific Methods |
| |
| createTextRange( ) | handleEvent[ ] | select( ) |
|
| |
| Object-Specific Event Handler Properties |
| |
| Handler | NN | IE | DOM | | onblur | 2 | 3 | 2 |
| onchange | 2 | 3 | 2 |
| onfocus | 2 | 3 | 2 |
| onkeydown | 4 | 4 | n/a |
| onkeypress | 4 | 4 | n/a |
| onkeyup | 4 | 4 | n/a |
| onselect | 2 | 4 | 2 |
|