Call function from parent
<p>Page A has iframe B. In iframe B, I have a var store a function name of page A. How to call that function from iframe B? (Both in a same domain)</p>

<p>I try this in iframe B</p>

<pre><code>eval("window.parent." + func_name + "('"+param1+"', '"+param2+"');");
</code></pre>

<p>It work well but I ask for a better solution if possible.</p>
