function abc() { alert('test'); } var funcName = 'abc'; window[funcName]();

javascript function call with variable