title: Access parent object in JavaScript from iFrame/Window
body: <p>How do I access a global object or array defined in a parent window in the child window.</p>
  
  <pre><code>&lt;script&gt;
      var events_data;
      function function_to_fill_events_data () {
        .
        .
        .
      }
  &lt;/script&gt;
  
  &lt;div&gt;
      &lt;div&gt;&lt;iframe src="mini.php" width:100%; height: 100%;" scrolling="no"&gt;&lt;/iframe&gt; &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When I am in the mini document I'd like to be able to access the events_data variable in a javascript function.</p>