Html 如何打开另一个页面的链接?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4216166/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 05:20:12  来源:igfitidea点击:

how to open a link in another page?

htmlhyperlink

提问by Adham

in html code how to make tag to open a link in another page ??

在html代码中如何制作标签以在另一个页面中打开链接?

回答by Evan Mulawski

If by "another page" you mean a new window:

如果“另一页”是指一个新窗口:

<a href="/page.html" target="_blank">Text</a>

More targets here: http://www.w3schools.com/tags/tag_a.asp

更多目标在这里:http: //www.w3schools.com/tags/tag_a.asp

回答by Alex

Add target="_blank"to the tag's attributes.

添加target="_blank"到标签的属性。

回答by SquidScareMe

you want to say target="blank". Have a look here

你想说 target="blank"。看看这里