Okay, I have a page on and on this page I have an iframe. What I need to do is on the iframe page, find out what the URL of the main page is.
I have searched aroun
The following line will work: document.location.ancestorOrigins[0] this one returns the ancestor domain name.
document.location.ancestorOrigins[0]