Hi I want to put a time delay on a function. This is how I'm going implementing it, however it's not working......

function loadXMLDoc(){setTimeout('loadXMLDoc()',5000);//code......

...}

felgall
—
2011-04-13T02:25:08Z —
#2

Try moving the set|Timeout after the rest of the code (assuming you want the code to constantly repeat with the delay in between) or after the function completely if you just want it to run once after the delay.