This one is to read the value of the maxlength attribute of textarea and perform calculations. The idea is good, but it is troublesome to modify. However, it is a good reference for js enthusiasts. It can be controlled by reading the attribute value.