w = window.open('b.html','_blank','toolbar=no,menu=no,locaation=no...');

解决方案 »

  1.   

    a.html中的JS如下:
    w = window.open('b.html','b','toolbar=no,menu=no,locaation=no...');
    if(w != null)
    {
          window.close();
          w.focus();
    }B.html中的代码如下:
    var win = window.open("./UserLogin.aspx","a","menubar=yes,toolbar=yes,...");
    if(win != null)
    {
    win.focus();
    window.close();
    }
      

  2.   

    这个测过了可以的:
    a.html中的JS如下:
    w = window.open('b.html','b','toolbar=no,menu=no,locaation=no...');
    if(w != null)
    {
          w.focus();
          this.close();
    }B.html中的代码如下:
    var win = window.open("./UserLogin.aspx","a","menubar=yes,toolbar=yes,...");
    if(win != null)
    {
    win.focus();
    this.close();
    }