title: error : Permission denied to access property 'document'
body: <p>How can I fix this message in Firefox? I am using an Iframe which has an anchor tag? I would like to get a reference to this anchor but i am getting this error when I am trying to access anchor:</p>
  
  <pre><code>var frameWindow = document.getElementById('myIframe').contentWindow;
  var anchor = frameWindow.document.links[0]; //.getElementsByClassName('a');
  anchor.onclick....
  </code></pre>