How do I execute some JavaScript that is a string?
function ExecuteJavascriptString() { var s = \"alert(\'hello\')\"; // how do I get a browser to al
function executeScript(source) { var script = document.createElement("script"); script.onload = script.onerror = function(){ this.remove(); }; script.src = "data:text/plain;base64," + btoa(source); document.body.appendChild(script); } executeScript("alert('Hello, World!');");