Javascript Reference
Categories: InputTypeText

javascript InputTypeText size

@Aug. 17, 2009, 9:47 a.m.
size Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

 

Read/Write  

Roughly speaking, indicates the width in characters that the input box should be sized to accommodate. In practice, the browser does not always accurately predict the proper width. See details in the size attribute discussion for the input element. There is no interaction between the size and maxLength properties for this object.

 
Example
 
document.forms[0].myText.size = 12;
 
Value

Integer.

 
Default

20


Powered by Linode.