Posts by Alberto • 13 points
1 post
-
0
votes1
answer52
viewsQ: How do I execute a scrip only after it is visible to the user?
I have this script: var count = document.getElementById('contador').innerText; var temp = count - 1000; function counting() { if(temp<count) { setTimeout(function(){…