蓝色理想上曾经有人讨论一个话题,就是为什么两个链接的 target 属性值都用“_BLANK”时,链接的页面出现在同一个新窗口中。我也不是很了解缘由,不过通过查询 DTD 和 HTML 4.01 ,找到下列文字:

程序代码
Since there is no guarantee that a frame target name is unique, it is appropriate to describe the current practice in finding a frame given a target name:
If the target name is a reserved word as described in the normative text, apply it as described.
Otherwise, perform a depth-first search of the frame hierarchy in the window that contained the link. Use the first frame whose name is an exact match.
If no such frame was found in (2), apply step 2 to each window, in a front-to-back ordering. Stop as soon as you encounter a frame with exactly the same name.
If no such frame was found in (3), create a new window and assign it the target name.
我的理解是:
尽管 HTML 中的属性值“不区分大小写”,但是对于 target 属性是个特例。这由其应用原则决定:
对于一个链接,系统首先会查找 target 属性,如果该属性不存在,则采用默认值 _self。倘若存在,就根据几个设定值加以比较,DTD 定义中都是小写(HTML 解释执行的时候会和 DTD 文档加以比较),如果不是这四个设定值,一概作为自定义值处理。
_self 是一个很好的检测值。