How do I execute some JavaScript that is a string?
function ExecuteJavascriptString() { var s = \"alert(\'hello\')\"; // how do I get a browser to al
You can execute it using a function. Example:
var theInstructions = "alert('Hello World'); var x = 100"; var F=new Function (theInstructions); return(F());