[Javascript] repeat script by timeout

Michael Borchers list at tridemail.de
Thu Aug 10 10:18:12 CDT 2006


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?! 




More information about the Javascript mailing list