Start a free Courses trial
to watch this video
Sometimes you need to wait a certain amount of time in your program before taking an action. You may also want to repeat an action after a certain length of time. You can do this using a timeOut and an interval. In this example tutorial, the element is replaced using getElementById.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upYou need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up