标签:
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;
标签:
原文地址:http://www.cnblogs.com/pmx-pmx/p/4809783.html