← Overview

inputCharCount

A live character counter, added as a progressive enhancement on a plain input or textarea.

Type in the fields below. The counter updates as you go; with a maxlength it shows how much of the budget is used (or, in countdown mode, how much is left) and turns red once the field is full — where the browser also stops accepting input. The text follows <html lang> (this page is en).