setTimeout() require qualification
The two javascript functions above are very useful. The first one executes something after a set delay, and the second executes something at regular intervals. The syntax is very similar. var time = 2000; // 2 seconds window.setTimeout(function() { alert(‘Yay!’); }, time); window.setInterval(function() { alert(‘Woo!’); }, time); Unfortunately, they weren’t working for me earlier. [...]