This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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