var Test = { Test : function(){ } } var v = 'Test.Test'; alert( typeof ( new Function('return ' + v)() ) == 'function' );