var windowObjList=new Array();//用于子页面关闭
function newWindow(url)
{
<span style="white-space:pre"> </span>var windowObj =window.open(url,"_blank");//将打开的窗口对象作为值赋给Wind对象
<span style="white-space:pre"> windowObjList.push(windowObj);</span>
}
<pre name="code" class="html">//关闭子页面
//.....清空session....//
//遍历所有子页面并关闭
for(var winObj in windowObjList){
windowObjList[winObj].close();
windowObjList[winObj]=null;
}