Javascript Reference
Categories: InputTypeText

javascript InputTypeText Description

@March 15, 2008, 1:22 a.m.
input (type="text")Firefox/Netscape/NN 2 IE 3 Chrome/Safari/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
 
dataFlddataSrcdefaultValueformmaxLength
namereadOnlysizetypevalue
 
Object-Specific Methods
 
createTextRange( )handleEvent[ ]select( )
 
Object-Specific Event Handler Properties
 
HandlerFirefox/Netscape/NNIEChrome/Safari/DOM
onblur232
onchange232
onfocus232
onkeydown44n/a
onkeypress44n/a
onkeyup44n/a
onselect242

Powered by Linode.