This article mainly introduces how to enter the number of words in the JavaScript dynamic prompt input box. The example analyzes the dynamic operation skills of javascript For page elements, which has some reference value, for more information about how to enter the number of words in the JavaScript dynamic prompt input box, see the example in this article. Share it with you for your reference. The details are as follows:
There is a small note in the QQ space. As you enter the number of words in the text box, the above will dynamically prompt you "how many words have been entered" and "how many words can be entered ", I think it is quite good, so I tried to do it myself.
In the beginning, I think many people will first find that they can use the onkeydown or onkeyup of js, and we can also use focus + setInterval () + blur to achieve what we need, as a result, I quickly used this method to write it roughly, achieving the expected results.
IT Technology Network-JavaScript dynamic prompt input box word count