Word restriction

Let’s say you have a certain number of words in a textbox, how can you do that if there are not enough characters to receive a message? c #

What you are asking is not clear.

I guess you may be wondering how do I specificy the maximum number of characters allowed in a textbox. if so you can use the attribute MAXLENGTH like below:

<input type="text" name="username" id="username" maxlength="10">

In the code above the user can only enter a username of 10 characters.