_blank, _self, _parent, _top, _new
来源:互联网 发布:怎么算开通了淘宝客 编辑:程序博客网 时间:2024/05/16 10:59
_self opens within the same window
_parent is used with a frame, it will open within the inner frame
_top is also used with a frame, it will open using the entire window, not within the frame.
Using target="_blank"
will instruct the browser to create a new browser tab or window when the user clicks on the link.
Using target="_new"
is technically invalid according to the specifications, but as far as I know every browser will behave the same way:
- it will search for a tab or window with the context name "_new"
- if a "_new" tab/window is found, then the URL is loaded into it
- if it's not found, a new tab/window is created with the context name "_new", and the URL loaded into it
Note target="_new"
will behave exactly the same as target="new"
, and the latter is valid HTML while the former is invalid HTML.
Adding some confusion to this, in HTML4 the target
attribute was deprecated. In HTML5 this decision was reversed, and it is an official part of the spec once again. All browsers support target
no matter what version of HTML you are using, but some validators will flag the use as deprecated if your doctype is HTML4.
The target attribute of a link forces the browser to open the destination page in a new browser window. Using _blank
as a target value will spawn a new window every time while using _new
will only spawn one new window and every link clicked with a target value of _new
will replace the page loaded in the previously spawned window
http://www.vodahost.com/vodatalk/adding-elements-website/22563-_blank-_self-_parent-_top.html
http://stackoverflow.com/questions/4964130/target-blank-vs-target-new
- _blank, _self, _parent, _top, _new
- HTML的target属性中_blank、_self、_parent、_top含义
- target属性里_blank _self _top _parent区别
- HTML中target属性中_blank、_self、_parent、_top含义
- HTML的target属性中_blank、_self、_parent、_top含义
- 链接里面 target属性里 _blank _parent _self _top _search 五者的区别
- 在html中属性target的四种取值(_self,_blank,_parent,_top)
- HTML学习记录<二>:标签的 target 属性中的_blank _self _parent _top
- _self和、_top、_parent的区别
- _self和、_top、_parent的区别
- _self和、_top、_parent的区别
- _self和、_top、_parent的区别
- 修改网页超链接的默认行为 <a> _blank _self _parent
- html 中 target="_self" target="_parent" target="_top"
- 在网页设计中:target="_self"和target="_parent"以及target="_top"各表示什么?
- target=_blank与target=_self的区别
- target=_blank与target=_self的区别
- <a> anchor的属性 _blank 新建页面 _top返回顶层页面
- OpenTLD资源
- rpm包制作详解
- 易语言所有命令
- Android所有系统资源图标android.R.drawable查看
- 计算物种平均寿命的数学公式
- _blank, _self, _parent, _top, _new
- 新学习WCF之 HelloWord。
- 柴静,你能看见自己吗?
- .RHEL 6上KVM的安装配置及使用 网桥
- UVA 414 - Machined Surfaces
- 第一个有意义的makefile
- OpenCV之感兴趣区域(ROI)
- Android中的程序名称和Lancher名称
- Linux 虚拟化库Libvirt