I am encouraging people to embed my website on their own using an iFrame. What I need to do is to let the Javascript on my page find out their domain. So if they embed my page on http://yahoo.com then I need to be able to fetch that address.
How to?
I tried various things such as parent.window.location, window.location etc. But all I get is the address to my page in the iFrame.
window.parent.document.locationwould give you the url