Getting error when URL of external Site in Iframe  in Javascript or Jquery
<pre><code>alert(document.getElementById('external-site').contentWindow.location.href);
</code></pre>

<p>Hello all, this code is working in <strong>Chrome</strong> and showing "undefined" but in <strong>Mozila Firefox</strong> it is showing error.</p>

<p><strong>Error: Permission denied to access property 'href'</strong></p>
