Passing javascript variable from parent to iframe
<p>So I have a variable in my page body like so:</p>

<pre><code>&lt;script&gt;
   var myClick = false;
&lt;/script&gt;
</code></pre>

<p>And a jquery ui dialog with iframe content. Now I want to check the variable on jquery ui dialog like -</p>

<pre><code>&lt;script&gt;
   if(myClick == true){
      // code somthing
   }
&lt;/script&gt;
</code></pre>

<p>What is the simplest way to do that?</p>