I need to execute a piece of JavaScript code say, each 2000 milliseconds.
setTimeout(\'moveItem()\',2000)
The above will execute a function
Here the Automatic loop function with html code. I hope this may be useful for someone.
Run »
Fiddle: DEMO