I have noticed that setTimeout works if the brackets () are left off
the function called, like this:
window.setTimeout(myFunction, 1000);
I thought that the brackets were required to show that myFunction is a
function, so why are they not required here?
Also I have found that if I want to pass a value to a function with
setTimeout I need to enclose the function in inverted commas, like
this;
window.setTimeout("myFunction(10)", 1000);
Why are the inverted comma's required here but not in the example
above?
I realize that these questions will be self explanatory to some of you
but I cannot find the answers even in the Rhino book. So friendly and
useful answers only please :-)