Input.readOnly (Property)

Set to true if the input text field cannot be changed.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:Boolean primitive
JavaScript syntax:-myInput.readOnly

The value of the input text field is defined but cannot be changed by the user.

Do not confuse this with the ReadOnly internal attribute that controls whether an object property value can be changed.

See also:Password.readOnly, ReadOnly, TEXTAREA.readOnly, TextCell.readOnly