is it possible to have an iframe read post-data or get-data from the parent frame?
example: if my current URL is www.site.com/parent_frame.html?url=www.frame.com/nav1/nav2/child_frame.html
would the frame embedded in the parent site be able to be set to load www.frame.com/nav1/nav2/child_frame.html.
I have access to both domains, however cannot use anything other than html and javascript on the parent page. the child page has access to PHP, javascript, HTML.
I am aware of the security risk of putting a URL in the get/post data and obviously the child would have validation to confirm that the URL is within the proper scope before loading, I just simply need some advice/direction on if this is possible.
This may be helpful to you: Calling a parent window function from an iframe
While this isn't setting anything in the GET/POST data it is a method to use JavaScript inside an iframe to access JavaScript within the parent frame/page.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.