Results 1 to 3 of 3

Thread: Diable ALT key

  1. #1
    Join Date
    Jan 2012

    Diable ALT key


    I'm up with a requirement to disable the ALT combination key press.
    For instance, if we press ALT + 1, we get ☺ character in return. I need to impose a restriction on it for not allowing such characters as a value.

    Is there any way to achieve this, any best way to control and imply it on all the textboxes of a page?
    Is there any global property on which if we change, it applies on its own, to all the existing textboxes of a page?


  2. #2
    Join Date
    Oct 2010
    Versailles, France
    It could be probably easier to control the values with an onkeyup events on the textboxes...

  3. #3
    Join Date
    Sep 2008
    Akron, OH
    Have you thought about implementing validation instead of prevention?

    For example, you could implement a field change function on the text boxes that checks to see if the character is valid. If it's not, it erases it and throws an error. I feel this is more standard than preventing the user of something they're use to doing.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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

Recent Articles