Following is Google Chrome version for getting parent window's URL from iFrame.
window.location.ancestorOrigins;
I'm looking for equivalent of above statement for FireFox and IE. Is it possible to achieve it.
Tried with document.referrer
also giving the iFrame Url only.
ancestorOrigins
API in Firefox for privacy reasons. There is an ongoing discussion on the whatwg group regarding changing the API to make use the referrer policy. – Fluid