←
^
→
JavaScript in the Browser
Timers
setTimeout()
schedules a function to execute after a number of milliseconds.
setInterval()
invokes the function repeatedly. Cancel with
clearInterval()
Ex: set a timeout on a onhover event for a delayed popup.
Using
setTimeout()
to 0 invokes it as soon as possible.
José M. Vidal
.
10 of 65