# setInterval immidiate start?

**URL:** <https://forum.kirupa.com/t/setinterval-immidiate-start/170090>\
**Category:** flash\
**Created:** [November 22, 2005, 6:24pm UTC](https://forum.kirupa.com/t/setinterval-immidiate-start/170090 "2005-11-22T18:24:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![knappster](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@knappster](https://forum.kirupa.com/u/knappster)\
**Post date:** [November 22, 2005, 6:24pm UTC](https://forum.kirupa.com/t/setinterval-immidiate-start/170090/1 "2005-11-22T18:24:50Z")

</div>

I have set up a setInterval function which repeats a function every 1 second for 5 seconds. Right now, the function is only initially activated AFTER 1 second of the setInterval being initiated. Is there a way to initially activate the function the moment the setInterval starts?
