onkeypress return false does not work for space bar

Posted by A Bright Worker on Stack Overflow See other posts from Stack Overflow or by A Bright Worker
Published on 2010-06-07T09:47:55Z Indexed on 2010/06/07 9:52 UTC
Read the original article Hit count: 565

Filed under:
|

hi,

I have written a javascript on a button which blocks the keypress or keydown event on that control. It works fine with key like Enter but when I press space bar key it event gets fired.

Do any one have solution for the same.

Thanks, Piyush

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about keypress