Mouse Click Speed Test (IE) : Mouse « Ajax Layer « JavaScript DHTML






Mouse Click Speed Test (IE)


http://dynapi.sourceforge.net/
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
<html>
<head>
<title>Mouse Click Speed Test (IE)</title>
<script language="Javascript">


</script>
</head>
<body bgcolor="#FFFFFF">

<script>

var c = 0;
function clickspeed() {
  status=c++;
}

</script>
<div style="width:100;height:100;background-color:yellow" onmouseup="clickspeed()"></div>

When clicking extremely fast, IE seems to miss about<BR>every
other click (or mouse down) event. I modified the example so it works with Mozilla too,
for<BR>comparison. It seems Mozilla doesn't like numeric status, takes
only<BR>string, doesn't auto-convert, and requires the window.status. I did
not<BR>observe any dropped clicks in Mozilla.

Solution for IE is to use onmouseup
</body>

</html>


           
       








dynapi.zip( 791 k)

Related examples in the same category

1.Add mouse down, over, up and out event to an image
2.Layer mouse event: move, click, over, exit, double click
3.Text selection on/off for mouse event
4.Mouse Button Test
5.Get layer mouse click event