1. Home
  2. Computing & Technology
  3. JavaScript
photo of Stephen Chapman

Stephen's JavaScript Blog

By Stephen Chapman, About.com Guide to JavaScript since 2004

setTimeout or setInterval

Friday April 18, 2008
JavaScript delay or JavaScript repeated actions - how to work out which is which.

Do you want to know exactly what the difference between the JavaScript functions setTimeout and setInterval is? These two JavaScript functions may look the same but they perform entirely different tasks and to substitute one for the other in your code (where it is possible to do so) will require significant changes to the way your code is written.

setTimeout or setInterval

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore JavaScript

More from About.com

  1. Home
  2. Computing & Technology
  3. JavaScript

©2008 About.com, a part of The New York Times Company.

All rights reserved.