var my_new_function = function(){
----
};
window.setTimeout(my_new_function, 1600);
the above works properly without any errors.
when i use:
window.setTimeout("my_new_function()", 1600);
it's working properly, but firebug is showing error :
my_new_function is not defined
in some articles about setTimeout, i found calling functions like in the 1st method, and in some other articles, i saw the other method.
which is more correct? and why is firebug showing such an error?