How do I disable use of the space bar and enter keys on my webpage?

Maybe have a look at jKey It is a jQuery plugin to allow key shortcuts, but you will maybe be able to do what you want with it.

Maybe have a look at jKey. It is a jQuery plugin to allow key shortcuts, but you will maybe be able to do what you want with it.

You can measure the time between successive clicks and if it less than say 100ms ignore the click.

– Martin Smith Mar 5 at 11:53 It does. But you can couple this with an extra piece of code which says "if the user's clicking rate has been over 4 per second for the past 10 seconds, then something is wrong" . Not many people can sustain that clicking rate for a long time.

– reseter Mar 5 at 11:55 Thanks for the reply. I had actually thought about doing that before but then I dismissed it because I didn't think it was possible. How would I go about doing this?

Thanks – Taimur Mar 5 at 12:10 How would you set the timer? I think some people can manage 10 clicks a second. – krtek Mar 5 at 12:27 @Taimur - I think you should post a new question for the time.

I can't answer that one :) @Krtek - Even if they can manage it, they can't sustain it for a long period of time. And even if they could, I wouldn't build a website asking visitors to break their fingers to get points. – reseter Mar 5 at 12:42.

When the timer expires unset the flag again. When the button is clicked check if the flag is set, if it is do not increase the score. You could also reset the timer to stop people just increasing their score as soon as the timer goes off.

My jQuery is not all that so I can't give an example off the top of my head. This would have the advantage that it should work against bots as well, although the bot could just be programmed to click as soon as the flag expired...

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions