at.*_*at. 7 html iframe relative-path hyperlink
我希望 an 中的相对链接iframe相对于地址栏中的 URL,而不是相对于iframe的 URL。这可能吗?
现代浏览器支持就是我所需要的。
例如:浏览器中的地址栏显示http://www.example.com/a/b.html. 里面那个网页是iframe用src的http://othersite.com/12x982h/index.html。在该 html 中,有一个指向test.html. 当您单击该链接时,浏览器应在 处加载一个新页面http://www.example.com/a/test.html。
更新:我无法控制iframe的内容。