Equivalent for 'window.location.ancestorOrigins' in FF and IE
<p>Following is Google Chrome version for getting parent window's URL from iFrame.</p>

<blockquote>
  <p>window.location.ancestorOrigins;</p>
</blockquote>

<p>I'm looking for equivalent of above statement for FireFox and IE. Is it  possible to achieve it.</p>

<p>Tried with <code>document.referrer</code> also giving the iFrame Url only.</p>