I have the value selected by the user stored in a variable (code to set a personalized cookie), what is the code to execute the code in the variable within a javascript function?
<i> </i>var x = "alert('this is a test');"; eval(x);
Help @Funny_Guy spread the word by sharing this article on Twitter...