O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

Finishing the image game

Now it’s time to put the final polish on the image game. What we want is for an image to automatically reblur a few seconds after it’s revealed. And, as we just learned, we can pass along an argument for the event handler when we call setTimeout. Let’s check out how to do this:

image with no caption


Cover of Head First JavaScript Programming


How about another version of setTimeOut?