5 out of 11 rated this helpful - Rate this topic

readonly attribute | readOnly property

[This documentation is preliminary and is subject to change.]

Sets or retrieves the value indicated whether the content of the object is read-only.

Syntax

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

p = object.readOnly

Property values

Type: Boolean

VARIANT_FALSE (false)

Default. Property is not set on the object.

VARIANT_TRUE (true)

Object is set to read-only.

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.

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
readOnly vs disabled

Another difference between the readOnly and disabled properties is when a form is submitted. The contents of a readOnly object are submitted with the form while a disabled object is not submitted.