Results 1 to 2 of 2

Thread: Stop the user from pressing a key

  1. #1
    Join Date
    May 2009
    Posts
    62
    Thanks
    19
    Thanked 3 Times in 3 Posts

    Question Stop the user from pressing a key

    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...

  2. #2
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •