i would like to start a script with a <body onload="getInfo(5)"> that calls a (let's say)php-skript via httpRequest/AJAX to get back something. function getInfo(timeOut) { ... // call file every X seconds } how do i realize the "every X seconds (=timeOut)) loop?!