title: Get return value after SetTimeout
body: <p>I've just asked about calling functions by name, now I want to process <code>return</code> statement after <code>SetTimeout</code>:</p>
  
  <pre><code>function ECall(funcName, arg)
  {
      command += "(";
      for (var i=1; i&lt;arguments.length; i++) 
      {
          command += "'" + arguments[i] + "'";
          if (i != arguments.length-1) command += ',';
      }
      command += ")";
  
      //var funcPtr = eval(funcName);
      //return funcPtr(arg); // This works, but I need SetTimeout
  
      setTimeout('window[\'' + funcName + '\']' + command, 1000);
  }
  </code></pre>
  
  <p><code>setTimeout</code> works great, but I have to save return value of called function. When I write: <code>setTimeout('alert(window[\'' + funcName + '\']' + command + ')', 1000);</code>
  It alerts return value of function. How can I store it?</p>