size attribute | size property

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
1 out of 7 rated this helpful - Rate this topic

Sets or retrieves the size of the control.

HTML 4.01 Specification, Section 17.4

Syntax

HTML<element size="p" ... >
JavaScript

p = object.size

Property values

Type: Integer

The size, in characters.

Standards information

Remarks

Although this property is read/write, no change is visible when you set the size of the input type=reset, input type=submit, and input type=image objects. However, you can detect a change to the size property for these objects in code.

For the input type=text object, the size is in characters and represents the width of the text box. When the size is specified, the select object represents a list box with the specified number of rows.

See also

input type=button
input type=checkbox
input type=file
input type=image
input type=password
input type=radio
input type=reset
input type=submit
input type=text
maxLength

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.