How do I execute some JavaScript that is a string?
function ExecuteJavascriptString() { var s = \"alert(\'hello\')\"; // how do I get a browser to al
eval(s);
Remember though, that eval is very powerful and quite unsafe. You better be confident that the script you are executing is safe and unmutable by users.