HTMLTextAreaElement: textLength property - Web APIs | MDN

Value

A non-negative integer.

Examples

js

const textareaElement = document.getElementById("comment");
console.log(textArea.textLength);

Specifications

Specification
HTML
# dom-textarea-textlength

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.