码迷,mamicode.com
首页 > Windows程序 > 详细

window.opener

时间:2015-09-15 12:46:06      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:

1.使用超链接打开窗口

 a.html

  

<a href="b.html" target="_blank">open</a>

 

b.html

  

document.write(window.opener);

 

target="_self" || "_top" || "_parent"时,window.operner=null;

target="_blank"||其他值时,window.opener=[object window];

 

c.html

window.open(url,name,features,replace);

name="_self"||"_blank"||其他值时,window.opener =[object window];

name="_top"||"_parent"时,window.opener = null;

 

  

window.opener

标签:

原文地址:http://www.cnblogs.com/pmx-pmx/p/4809783.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!