Question:
I am making a happy birthday website for a friend. I want to add images to the DOM after every 2s at a specific co-ordinates.I have a setTimeout function in my script as follows :
Any clues how to do the task????
Answer:
Use setInterval function instead it will trigger each period of time.If you have better answer, please add a comment about this, thank you!