PDA

View Full Version : Stop the user from pressing a key



heavensgate15
04-21-2010, 03:04 PM
Is there a way in javascript where in the user cannot press further on keyboard if a certain number of characters were pressed..?

For example, in a textarea, if the user typed 250 characters already, and if he attempted to type further, it will not show on the textarea...:confused:

vwphillips
04-21-2010, 04:13 PM
http://www.vicsjavascripts.org.uk/FormCompendium/LimitTextBoxAreaText.htm