Baseline Widely available
The readOnly
property of the HTMLTextAreaElement
interface indicates that the user cannot modify the value of the control. Unlike the disabled
attribute, the readonly
attribute does not prevent the user from clicking or selecting in the control. It reflects the <textarea>
element's readonly
attribute.
A boolean.
Examplesconst textareaElement = document.getElementById("comment");
console.log(textArea.readOnly);
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4