Can someone please tell me why the clearInterval() func is never called even though the var pl certainly hits 10.
Wierd
- Code: Select all
<script type="text/javascript">
var flashObj = document.getElementById("gameJS");
var pl = 0;
function showPercent(){
pl++;
}
if(pl == 10){
clearInterval();
}
else {
setInterval("showPercent()",1000);
}
</script>