var win=null;
....
if (win != null)
  win.location.reload(true);
else
  win = window.open("somefile.html","_blank");

解决方案 »

  1.   

    谢谢 : saucer(思归) !! 分数肯定给的!!
      

  2.   

    var win=null;
    ....
    if (win != null)
      win.close();
    else
      win = window.open("somefile.html","_blank");
      

  3.   

    window.open("url","固定的Name")
    他会自动刷新的
      

  4.   

    : Reve(仨仁仕) : 你的方法只会产生一个新窗口,不会关闭以前的窗口!
      

  5.   

    我用的window.open("url","固定的Name")中的 url 是个jsp文件, 它的内容没有刷新呀
      

  6.   

    var win=null
    if(win && win.open && !win.closed)
    {
    win.focus()
    win.location.reload()
    }
    else
    win=window.open("xxx.jsp")