Event repeat
<html> <body> <script language="JavaScript"> function keyStatus() { x = event.repeat; if (x == true) { alert("A key has been hold down"); } } </script> <a id="myL" href="http://www.java2s.com/" target="_blank" onKeyDown="keyStatus();">Java2s.com Network </a> </body> </html>