i have first domain "mydomain.com" in which i have put this
<iframe src="yourdomain.com"></iframe>
i have second domain "yourdomain.com" which contains webpages and which is in iframe src. now, i want to get url of "yourdomain.com" in "mydomain.com" when i navigate in iframe. i have already tested this code :
this.contentWindow.location
But it is not working, it is only working when both files is in same domain. so, if anybody who knows how to do this Please give me the solution and help me. Thanks in advance.
In your yourdomain.com page try this:
Where iFrame is the id of iframe tag