Calling the spacebar? What, so it goes down all by itself? With JavaScript? That's amazing!
What are you trying to do? It's 32 in decimal. If you think it might ever change (I don't) you could always do if(event.keyCode == " ".charCodeAt(0)) - LOL!
If you're trying to mask it, don't forget you need a "return" in your event handler definition e.g. onkeyup="return ignoreSpacebar()", or event.returnValue = false; inside your event handler.
Main Topics
Browse All Topics





by: TedInAKPosted on 2006-09-28 at 23:20:53ID: 17625454
Can you post some example code that doesn't work for you?