target="_blank" 和有什么区别?和目标=“空白"? [英] What is the difference between target="_blank" and target="blank"?

查看:29
本文介绍了target="_blank" 和有什么区别?和目标=“空白"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我接触网络编程以来,我总是使用在新窗口中打开一个链接

Since I approached the web programming, to open a link in a new window I always used

target="blank"

但大多数时候,在这里和我见过的其他网络中使用:

but most of the time, here and in the rest of the web I have ever seen use:

target="_blank"

两种形式都有效(当然),但我不知道这两个版本之间的区别,他们也不知道正确的方法(以及为什么)......

Both forms work (of course), but I do not know the difference between the two versions and they do not know what the correct way (and why)....

推荐答案

blank 以名为blank"的现有框架或窗口为目标.仅当空白"不存在时才创建新窗口.

blank targets an existing frame or window called "blank". A new window is created only if "blank" doesn't already exist.

_blank 是一个保留名称,它针对一个新的、未命名的窗口.

_blank is a reserved name which targets a new, unnamed window.

这篇关于target="_blank" 和有什么区别?和目标=“空白"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆