I have a textarea box that sends the information to Javascript via onclick(). I want to execute the code the user puts into the textarea. How can I do that?
var code = document.getElementById('code').value
That's part of the function that gets called via onclick. See that variable is called code. I want code the be executed as real Javascript code. How do I do that?