textLength
Summary
Use value.length (in JavaScript/ECMAScript) instead. Gets the codepoint length of the value of the element.
Property of dom/HTMLTextAreaElementdom/HTMLTextAreaElement
Syntax
Note: This property is read-only.
var valueLength = textAreaElement.textLength;
Return Value
Returns an object of type NumberNumber
The codepoint length of the value of the element.
Usage
Use the well known and well supported value.length instead (in JavaScript/ECMAScript).
Use this property to get the codepoint length of the value of the element. For more details about codepoint length, see length.
Related specifications
- W3C HTML5
- W3C Candidate Recommendation
- WHATWG HTML
- Living Standard
See also
Related articles
HTML
textLength