Click to return to the DHTML, HTML     
readOnly Property     readyState Property     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

READONLY Attribute | readOnly Property


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

Syntax

HTML<ELEMENT READONLY ... >
Scriptingobject.readOnly [ = bRead ]

Possible Values

bRead Boolean that specifies one of the following values:
falseProperty is not set on the object.
trueObject is set to read-only.

The property is read/write with a default value of false.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

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.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:

INPUT type=text, INPUT type=password, TEXTAREA



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.