Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pass function name as string javascript

var codeToExecute = "My.Namespace.functionName()";
var tmpFunc = new Function(codeToExecute);
tmpFunc();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #function #string #javascript
ADD COMMENT
Topic
Name
5+5 =