1

我的投资组合主页上有链接和选项卡,并且我的选项卡中有指向其他网站的链接,但 url 的正确框架不会更改为新的 url。

示例页面 http://www.mydomain.com/是主页,但是当我导航到新链接时,即使链接将用户带到新站点,URL 栏仍会显示主页框架。

如何在 html、php 或 javascript 中解决此问题

4

1 回答 1

1

要使链接加载到顶层框架中,请将链接的目标设置为“_top”

<a href="http://www.mydomain.com/otherpage.html" target="_top">My Link</a>

请参阅W3Schools 文档

于 2013-06-04T00:26:46.807 回答