So I have a variable in my page body like so:
<script>
   var myClick = false;
</script>
And a jquery ui dialog with iframe content. Now I want to check the variable on jquery ui dialog like -
<script>
   if(myClick == true){
      // code somthing
   }
</script>
What is the simplest way to do that?