I thought this would be simple, but I can't find it anywhere on the web; I have a function that uses setInterval to run periodically on the page. I want to delay the start of that function using setTimeout.
The current code is:
var Timer = window.setInterval( "function()", 100 );
I've tried the following, but neither work:
var Timer = window.setTimeout("setInterval( 'function()', 100 )", 1000);
var Timer = setTimeout("window.setInterval( 'function()', 100 )", 1000);