[Javascript] [JavaScript List] setInterval 3rd Parameter
Matt Barton
javascript at mattbarton.org
Tue Feb 8 08:44:55 CST 2005
O'Reilly's DHTML book says the following about the third (or more)
parameter to setInterval():
"IE permits a third parameter to specify a different scripting language
in which the expression [in the first parameter] is to run. Unless it
is a VBScript parameter you can omit this parameter. Navigator,
however, lets you substitute a function reference (not a string) as the
first parameter, and pass a comma-delimited list of parameters that go
to the function call. These parameters go after the msecs time, and
they can be any data types."
The function definitions supplied:
setInterval ("scriptExpression", msecs[, language])
setInterval (functionReference, msecs[, arg1, ..., argn])
HTH
Matt
Jursa, Jan (init) wrote:
> Hi,
>
> i thought it would be possible to give setInterval a third param, an
> Object for example.
>
> Something like this:
>
>
>
> setInterval(myFunction,1000, new Date())
>
>
>
> can’t get it to work, though…
>
>
>
> cheers,
>
> j
>
>
>
>
>
>
>
> --
> This email has been verified as Virus free
> Virus Protection and more available at http://www.plus.net
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list