Forum Moderators: open
Thank you in advance!
I understand you, but check this Bulgarian web site HERE IS MADE IT THE SOLUTION OF THE MY PROBLEM ABOVE:
<snipped url>
See in the BIG TEXT BOX field - there is shown the REAL URL of the loaded content of the iFrame. Click on any link within the iFrame i.e. click Jewelry link and see the real URL is shown in to the BIG TEXTBOX field.
OK men, I need exactly the same functionality for another web site. It looks these guys got solution, but WHAT IS THE SOLUTION ?!?
[edited by: whoisgregg at 3:28 pm (utc) on May 4, 2009]
[edit reason] Whoops, no URLs please. See TOS & Stickymail. [/edit]
alert(document.getElementById('iframe').contentDocument.location.href);
alert(document.getElementById('iframe').document.location.href);
<body>
<Iframe id="iframe" src="http://www.google.com" width="950" height="600"></Iframe>
</body>
Thank you!
The community here at WebmasterWorld is quite knowledgeable and very helpful. No one is trying to hide the answer from you, it's simply a matter that what you are trying to accomplish is designed by the people who make browsers to be impossible. You may be able to find loopholes that work in certain circumstances in certain browsers but those loopholes will eventually be closed.
I know how frustrating it is when clients demand the impossible, but this may be a better opportunity to educate the client rather than an opportunity to try to get around browser security models.