How do I execute some JavaScript that is a string?
function ExecuteJavascriptString() { var s = \"alert(\'hello\')\"; // how do I get a browser to al
If you want to execute a specific command (that is string) after a specific time - cmd=your code - InterVal=delay to run
function ExecStr(cmd, InterVal) { try { setTimeout(function () { var F = new Function(cmd); return (F()); }, InterVal); } catch (e) { } } //sample ExecStr("alert(20)",500);