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.
readonly attribute | readOnly property
Sets or retrieves the value indicated whether the content of the object is read-only.
Syntax
| HTML | <element readonly="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: Boolean
Remarks
If the value of the readOnly property is set to true, the user cannot enter or edit text in the control. When set to true, the property still allows the object to receive the focus, whereas the disabled property does not.
See also
- input type=email
- input type=number
- input type=password
- input type=range
- input type=search
- input type=tel
- input type=text
- input type=url
- textArea
Show: