How to call a JavaScript function by string name.

An excellent answer to this question can be found at: http://stackoverflow.com/questions/359788/how-to-execute-a-javascript-function-when-i-have-its-name-as-a-string I knew you could call a JavaScript function by it’s string name, by using window[‘functionName’], but this does not work for namespace functions. When you want to call a namespace function by it’s string name you should use the …