Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript execute string code

var theInstructions = "alert('Hello World'); var x = 100";

var F=new Function (theInstructions);

return(F());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #execute #string #code
ADD COMMENT
Topic
Name
9+8 =