Chris Benoit. Christopher Michael Benoit (French pronunciation: â; May 21, 1967 â June 24, 2007) was a Canadian professional wrestler.
The problem. Say you have a website (site A) with an iframe wherein you host another website (site B). In old and unsecure browsers it was possible to do a JavaScript call from site B to site A like this: window.parent.doSomething(); Here the doSomething function is living on site A and is called by site B through its parent window.
Your question seems to contradict itself. It is indeed only visible in the parent function which is why you can call it with validate() inside the enclosing function. You seem to claim that that doesn't work, because it is visible in the appropriate scope.