error : Permission denied to access property 'document'
<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>
