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? Link to comment https://forums.phpfreaks.com/topic/211032-php-iframe/ 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 Link to comment https://forums.phpfreaks.com/topic/211032-php-iframe/#findComment-1100676 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.