flash中target=_parent与target=_top的区别与用途
2012-02-14 11:26
387 查看
在手动改HTML代码时经常会用到target参数,常用的有两个target=_blank 和target=_self意思为:target=_blank表示在新窗口中打开该链接;target=_self表示相同框架,即在当前窗口(或当前选项卡)中打开该链接还有两个不常用的:target=_parent,将链接的文件载入含有该链接框架的父框架集或父窗口中。如果含有该链接的框架不是嵌套的,则在浏览器全屏窗口中载入链接的文件,就象_self参数一样。 target=_top,在当前的整个浏览器窗口中打开所链接的文档,因而会删除所有框架 不写的话就是表示默认值,默认值一般跟浏览器有关。 比如网A中镶嵌iframe了网页B,网页B又镶嵌iframe了网页C:如果网页C中连接设置target=_parent,则跳将网页B去掉直接A中嵌入网页C中链接页面;而如果网页C中target=_top ,则直接跳出所有iframe框架,直接转向C中链接页面。
相关文章推荐
- target=_parent与target=_top的区别与用途
- target属性里_blank _self _top _parent区别
- 链接里面 target属性里 _blank _parent _self _top _search 有什么区别?有什么用?
- JSP中window.location.href"、"location.href"、"parent.location.href"、"top.location.href"和"target属性"的用法
- 在HTML中target目标的四个参数的用法 blank,parent,self,top
- html中<a>标签_top和_parent的区别
- window.parent ,window.top,window.self 详解及parent和opener的区别
- target="_parent"和"_self"的区别 (转载)
- _self和、_top、_parent的区别
- HTML中target属性中_blank、_self、_parent、_top含义
- 通过<frameset>和<iframe>看JavaScript中window对象parent、self、top的区别
- HTML学习记录<二>:标签的 target 属性中的_blank _self _parent _top
- 网页设计中:target="_self"和target="_parent"以及target="_top"意思
- 关于js中window.location.href,location.href,parent.location.href,top.location.href的用法与区别
- 关于js中window.location.href,location.href,parent.location.href,top.location.href的用法与区别
- Javascript内置变量top和parent区别
- JS中的window.parent,window.top,window.self的区别
- self,top,blank,parent区别
- HTML的target属性中_blank、_self、_parent、_top含义
- 网页设计中:target="_self"和target="_parent"以及target="_top"意思