关闭页面:
1.window.close(); //有js关闭页面保存提示
2. window.opener=null;
window.open("","_self");
window.close(); //无提示
传值:
父页面:
function getValue(username,password)
{
alert("子页面传递过来的值有:"+username+" "+password);
}
子页面:
self.opener.getValue("zhangsan","123");