链接到包含iframe的页面

时间:2014-06-10 08:57:36

标签: javascript html iframe

我想链接到包含iframe的网页。假设该页面包含http://www.some_page.com/products链接。 iframe是从http://products.some_other_domain.com/seller_id=3984y329等其他来源加载的产品列表。

当我点击列表中的某个产品时,会显示该产品的详细信息页面。这意味着我的浏览器仍在页面http://www.some_page.com/products上,但iframe的内容现在为http://products.some_other_domain.com/seller_id=3984y329&product_id=34534

现在我可以直接链接到http://products.some_other_domain.com/seller_id=3984y329&product_id=34534,但这不会呈现我真正想要链接到的页面http://www.some_page.com/products

有没有办法“伪造”这个或做某事,以便在链接到页面时我可以操纵那个iframe的内容来显示我想要的内容?

1 个答案:

答案 0 :(得分:0)

您可以尝试获取'该页面使用get并操纵来源,但涉及到一些工作......