Baseline Widely available
The textLength
read-only property of the HTMLTextAreaElement
interface is a non-negative integer representing the number of characters, in UTF-16 code units, of the <textarea>
element's value. It is a shortcut of accessing length
on its value
property.
A non-negative integer.
Examplesjs
const textareaElement = document.getElementById("comment");
console.log(textArea.textLength);
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