title: accessing variable in parent page from iframe
body: <p>I have a page with an iframe that contains a html page. I want to access a Javascript variable in the parent page from within the iframe. The name of the variable in the main page is <code>observer</code>.</p>
  
  <p>I have tried this</p>
  
  <pre><code>parent.observer = 'aadasds';
  </code></pre>
  
  <p>but I am getting the following error:</p>
  
  <blockquote>
    <p>Permission denied for  to get property Window.observer
    from </p>
  </blockquote>
  
  <p>.</p>