How do I execute some JavaScript that is a string?

function ExecuteJavascriptString()
{
    var s = "alert('hello')";
    // how do I get a browser to alert('hello')?
}

21 Answers
21

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *