This is because Internet Explorer interprets two quick clicks in a line as one click, followed by one double click, while other browsers interpret it as two clicks and double clicks.
Try checking this to see how each browser responds to a double click.
<html>
<head>
<script type='text/javascript'>
function onclick_test()
{
var console = document.getElementById('console');
console.appendChild(document.createTextNode('onclick'));
console.appendChild(document.createElement('br'));
}
function ondblclick_test()
{
var console = document.getElementById('console');
console.appendChild(document.createTextNode('ondblclick'));
console.appendChild(document.createElement('br'));
}
</script>
</head>
<body>
<span style='border:1px solid blue;' onclick='onclick_test();' ondblclick='ondblclick_test();'>Click me</span>
<div id='console'></div>
</body>
</html>
source
share