【问题标题】:How can i edit this line to open this url in newtab HTML我如何编辑此行以在新选项卡 HTML 中打开此 url
【发布时间】:2018-06-19 12:14:18
【问题描述】:

我不知道正确的 HTML 编码,任何人都可以编辑此行以在新标签中打开网址

提前致谢

<meta content='5; URL=http://www.hitcpm.com/watch?key=62041d2f0b7ef3827ecd53d9cc239bce' http-equiv='refresh'/>

【问题讨论】:

  • 这不是元刷新的目的。尝试查找类似使用 Javascript 打开新标签的内容
  • 这是一个博客,所以我无法更改整个博客的编码
  • 它应该在没有点击的情况下打开
  • “我不知道正确的 HTML”所以稍微研究一下,所以不是免费的编码服务...

标签: html tabs


【解决方案1】:
<meta http-equiv="refresh" content="5; URL=javascript:window.open('http://www.hitcpm.com/watch?key=62041d2f0b7ef3827ecd53d9cc239bce','_blank');">

【讨论】:

  • 我希望它自动打开
【解决方案2】:

尝试使用:

<a target="_blank" href="http://www.hitcpm.com/watch?key=62041d2f0b7ef3827ecd53d9cc239bce">TextHere</a>

如果您确定无法使用超链接标签,那么@Dhiraj 的回答似乎更符合您的要求

【讨论】:

  • 我希望它自动打开
  • 使用Javascript文档加载方式并通过javascript打开链接
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-01-10
  • 2016-09-16
  • 2016-05-03
  • 1970-01-01
相关资源
最近更新 更多