In JavaScript 1.0 and above (I believe), this is a method of the Window object. The safest way to use it is as follows:

window.setTimeout("doStuff()", 250);

Yeah, the first parameter is a string that gets evaluated. The second parameter is in milliseconds. Some days I wonder if JavaScript is case-sensitive. I've never had the guts to test it.

the safest way to use it is not to use it at all unless you're writing an interactive application. refreshing webpages are obnoxious as are redirects which require javascript to be on and thus screw lynx users.

Log in or register to write something here or to contact authors.