A well-known JavaScript problem, solved. Some functions in servers and browser software need to run periodiically, say once a minute. If you code it in a straightforward way you get drift. The ...
setInterval(function(){ myFunction(); }, 3000); function myFunction(){ alert("Alert in every 3 second!"); } So here with the help of setInterval() we are calling ...