JS settimeout doesn’t work in IE8…

Posted by Nagesh on Stack Overflow See other posts from Stack Overflow or by Nagesh
Published on 2010-06-09T07:17:51Z Indexed on 2010/06/09 7:22 UTC
Read the original article Hit count: 385

<html>   
 <head>   
 <script>

var i;
i = 0;
function loop() { 
     i = i + 1;
     alert(String(i));
     setTimeout("loop()",1000);
}
setTimeout("loop()",1000);  
</script>   

 </head>   

 <body>   

</body>   
 </html>  

Please try the above code in IE8 it will not give alert message for every 1 sec if you hold right click.

But in firefox it will give alert message even though if you dont release the right click.

I want the firefox functionality in IE8.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about internet-explorer-8