HTML 中的 target value blank,self,parent,top 有什么区别?
what is the difference between target value blank,self, parent,top in HTML?
标签target属性中的target value blank,self,parent,top,framename有什么区别?
我知道空白比新标签页中的 link 更开放
self 是 link 在当前选项卡中打开
但我无法理解 parent 和 top
target="_blank"
打开一个新的 window 并显示相关数据。
target="_self"
在同一帧打开window,即存在window本身。
target="_top"
在 window 的完整正文中打开链接文档。
target="_parent"
以父 window 的大小打开数据。
来自规范:
_blank
The user agent should load the designated document in a new, unnamed
window.
_self
The user agent should load the document in the same frame as the
element that refers to this target.
_parent
The user agent should load the document into the immediate FRAMESET
parent of the current frame. This value is equivalent to _self if the
current frame has no parent.
_top
The user agent should load the document into the full, original window
(thus canceling all other frames). This value is equivalent to _self
if the current frame has no parent.
标签target属性中的target value blank,self,parent,top,framename有什么区别? 我知道空白比新标签页中的 link 更开放 self 是 link 在当前选项卡中打开 但我无法理解 parent 和 top
target="_blank"
打开一个新的 window 并显示相关数据。
target="_self"
在同一帧打开window,即存在window本身。
target="_top"
在 window 的完整正文中打开链接文档。
target="_parent"
以父 window 的大小打开数据。
来自规范:
_blank
The user agent should load the designated document in a new, unnamed window.
_self
The user agent should load the document in the same frame as the element that refers to this target.
_parent
The user agent should load the document into the immediate FRAMESET parent of the current frame. This value is equivalent to _self if the current frame has no parent.
_top
The user agent should load the document into the full, original window (thus canceling all other frames). This value is equivalent to _self if the current frame has no parent.