[thelist] Javascript - loop a setTimeout()

Seb seb at members.evolt.org
Mon Jan 13 22:08:01 CST 2003


>Is there a way to loop a setTimeout() function in JavaScript?
>setTimeout("WarningWindow()",5000);
>I'm using it in the <.body> onLoad.

I could be being dim, and I hope jeff will set me straight if so, but
surely the simple thing to do is get your WarningWindow() function to call:
setTimeout("WarningWindow", 5000); as the last thing it does?

Oh, by the way. I ran into a problem with setTimeout on IE5+ on the mac,
where you need to specify your callback function without the parentheses:

setTimeout("blahFunc", 1000)

instead of

setTimeout("blahFunc()", 1000)

regards,

- seb

--
seb can be found at http://poked.org




More information about the thelist mailing list