if ( !child && !child.closed ) 
    var child = window.open('xxx.asp','xx','参数');
else
    child.focus();

解决方案 »

  1.   

    更正一下
    if ( !child || child.closed ) 
        var child = window.open('xxx.asp','xx','参数');
    else
        child.focus();
      

  2.   

    谢谢 yuyuwhite() 指点
    我稍作修改,:<script language="javascript">
    var newer = null;
    function opena()
    {
    if (newer != null)
       newer.close();
       newer = window.open("xxxx.asp","xx","参数");
    }
    </script>再次感谢!!!
      

  3.   

    http://topic.csdn.net/t/20040812/10/3266433.html最小花  ,关闭