【问题标题】:html: My website does not show the correct frame when navigating linkshtml: 我的网站在导航链接时没有显示正确的框架
【发布时间】:2013-05-30 06:21:21
【问题描述】:

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

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

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

【问题讨论】:

  • 这应该是重复的,但我找不到...
  • 请展示你的作品;发布并格式化您已经尝试过的一些示例,以便我们可以更好地帮助您。

标签: html url dns frame


【解决方案1】:

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

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

W3Schools Documentation

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-15
    • 2017-05-14
    • 2013-03-17
    • 2021-03-19
    • 1970-01-01
    • 2021-08-18
    相关资源
    最近更新 更多