javascript InputTypeText readOnly

readOnlyNN 6 IE 4 DOM 1  

Read-only  

Specifies whether the form element can be edited on the page by the user. A form control that has a readOnly property set to true may still be modified by scripts, even though the user may not alter the content.

 
Example
 
if (document.forms[0].myText.readOnly) {
    ...
}
 
Value

Boolean value: true | false.

 
Default

false


1118,Nickname,Homepage or email,Comments here,Add comment