verdrm Posted August 18, 2010 Share Posted August 18, 2010 I have an iFrame with a source location of www.google.com. If I browse to another page on Google.com, I can go to it, but cannot obtain the source of the page. Using JavaScript, I can only return the parent location, www.google.com Is there a way to return the current page URL of an iframe? Another idea is, using PHP, when the iframe makes a request to a new page, is there some way to return the request? Ex: if I browse to google.com/images, can PHP return that the server is trying to request that page? Quote Link to comment Share on other sites More sharing options...
swamp Posted August 18, 2010 Share Posted August 18, 2010 You cannot access the iframe location after you have navigated away from it due to browser security restrictions Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.