且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

点击链接时如何打开新标签页或窗口?

更新时间:2023-01-05 08:19:22

<a href="newpage.htm" target="_blank">Click me to open in a new tab/window</a>




将链接文档加载到新的
空白窗口中。此窗口不是
命名的。

Load the linked document into a new blank window. This window is not named.

如果在目标中没有与指定
相同名称的现有窗口或
框架,一个新窗口被打开
,其名称等于
目标的值。

If there is no existing window or frame with the same name as specified in the target, a new window is opened with a name equal to the value of the target.

在浏览器中进行设置,以确定是否在新标签页或新窗口中打开页面。

Its the setting in a browser that determines whether to open the page in a new tab or in a new window.