how to call a function in variable in javascript code example
Example: javascript function call with variable
function abc() {
alert('test');
}
var funcName = 'abc';
window[funcName]();
function abc() {
alert('test');
}
var funcName = 'abc';
window[funcName]();