javascript - Execution of User Code from prompt in same document -


I want to execute some code that I put in quick communication.

In the script tag, I only have this

  code = sign (""); Code;  

If I alert the code variable then I have the proper string, although it does not execute that statement.

Is this possible?

What you are trying to achieve, it is very difficult, so I guess here I am here. Is this what you are looking for?

  var code = prompt (""); Eval (code); If not, sorry, but you really should improve your questions. 


Comments