evalJS allows you to run ANY javascript code in a "sandboxed" enviroment.
Usage:
evalJS(javascript commands)
Returns:
The returned value of your javascript command - formated as a string (always!)
Logs an error to the web console when any error in the code occurs.
Example:
show_message(evalJS("
var test = function() {
return text = 2+2;
}
return test();
"));
//Returns "4"
Also check out my other assets!
End User Licence Agreement (EULA).