Content-Length: 195616 | pFad | http://developer.mozilla.org/ja/docs/Web/API/HTMLTextAreaElement/textLength

HTMLTextAreaElement: textLength プロパティ - Web API | MDN

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

HTMLTextAreaElement: textLength プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2018年4月.

textLengthHTMLTextAreaElement インターフェイスの読み取り専用プロパティで、 <textarea> 要素の値の文字数を UTF-16 コード単位で表す非負の整数です。これは、 value プロパティの値の length にアクセスするショートカットです。

非負の整数です。

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

仕様書

Specification
HTML
# dom-textarea-textlength

ブラウザーの互換性

関連情報









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://developer.mozilla.org/ja/docs/Web/API/HTMLTextAreaElement/textLength

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy