I have the following function that should create a function from a String with event -
function getFuncDefEvent(jsFunctionString){
if(jsFunctionString!= undefined) {
return function(event){jsFunctionString};
}
}
this would be an example of a function string :
jsFunctionString = "doSomething(event); doSomethingElse();
I've attached it to a onclick
event however it doesn't seem to fire any of the events. Am I missing something?