# IE6 and setInterval() problem

**URL:** https://forum.kirupa.com/t/ie6-and-setinterval-problem/236784
**Category:** web dev
**Created:** [August 23, 2007, 4:51pm UTC](https://forum.kirupa.com/t/ie6-and-setinterval-problem/236784 "2007-08-23T16:51:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sigepmest37](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sigepmest37](https://forum.kirupa.com/u/sigepmest37)
#### Post date: [August 23, 2007, 4:51pm UTC](https://forum.kirupa.com/t/ie6-and-setinterval-problem/236784/1 "2007-08-23T16:51:09Z")

</div>

Hello everyone!

Here is my code:

```auto

function fnStartInterval(){
setInterval('fnRecycle()',5000);
}
function fnRecycle(){
  alert("test");
}
fnStartInterval();

```

The above code never fires in IE6. Works fine in IE7 and FF.

```auto

function fnStartInterval(){
setInterval(fnRecycle(),5000);
}
function fnRecycle(){
  alert("test");
}
fnStartInterval();

```

This code fires only once and then gives “invalid argument” error in all browsers.

I have looked everyone for a explanation on how to get this interval to work in IE6.

You are my last hope!

Thanks in advance
