Trigger a function from an iframe but execute as if triggered from parent document?
<p>I've got a parent page, with a child iframe... When clicking on a specific button inside the child iframe, I want a function to trigger as if it were originating from the parent document itself.</p>

<p>The function chain I have is rather long, and dependent no a lot of variables and what not. When I trigger the function (by adding onclick to the button in the child frame), the chained functions fail because the variables are not recognized (since they don't exist within the child DOM's scope).</p>

<p>Any thoughtful solutions?</p>
