The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

stop auto-repeat onkeydown?

hi,
I am trying to write a js program which counts keyboard clicks.
The problem I have is stopping auto-repeat, i.e. if the key is held down for a long time it counts this as lots of clicks instead of just one.
So far I have only tested in Safari on OS x and IE on Windows.
It is IE that is giving me the trouble.
I am a bit of a noobie, and starting to wonder if what I want to do is possible- maybe I should try some other way?
I added in what I could find that is supposed to stop default behaviour:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN">
<html>