Possible Duplicate:
How do I get the current location of an iframe?
Hi,
How can I get the URL of the page inside my iFrame.
For exampple, I have a ifarme in my page:
<IFRAME name="Google" id="Google" style="position:absolute;left:0px;top:100px;width:500px;height:500px;z-index:1" src="http://www.google.com/" frameborder="1"></IFRAME>
If the page changes inside the iframe, like if http://www.google.com changes then it should give the appropiate Url.
I tried using document.getElementById("Google").contentWindow, but it gives "Access Denied" error. Any idea how that can be done?
Thanks in advance. Regards, Bhaskardeep Khaund