I am trying to access a nested function by passing the function name as a string and then calling it. For example, see this post
function outer(action){
window["outer"][action]();
function inner(){
alert("hello");
}
}
outer("inner");
However, this will not work. Error:
window.outer[action] is not a function
How to make this work or an alternative way to call a nested function.
The reason for this is because I am trying to hide a bunch of functions called iframes inside the function area.
source
share