10-20-2010 04:51 AM
my question is, how can I get the url of a site which is open in the iframe? So with "location.href" I only get the iframe location but not the url of the opened site. Do you know how I can solve it?
10-23-2010 01:14 PM
The only way to get the url location is if the origin of the content that is in the iframe is the same origin as the page that contains the iframe.
This is a security feature that is blocked in browsers.
If they are all in the same domain/origin you should be able to get it from the iframe's contentWindow object.
I "think" it looks something like.