window.open("test1.htm","onlyone","");window.open("test2.htm","onlyone","")window.open("test3.htm","onlyone","")window.open("test4.htm","onlyone","")

解决方案 »

  1.   

    你用 window.open 来打开窗口, 只要每个 window.open 里的第二个参数一样, 那么只会打开一个窗口, 后面的只会重载新窗口.<a href=aa.htm target=hrong onclick="self.blur(); window.open('','hrong').focus()">测试</a><br>
    <a href=bb.htm target=hrong onclick="self.blur(); window.open('','hrong').focus()">测试</a><br>
    <a href=cc.htm target=hrong onclick="self.blur(); window.open('','hrong').focus()">测试</a><br>
      

  2.   

    子窗口:
    <body onload="window.opener.sonOpened = true">父窗口通过window.sonOpened判断子窗口是否完全打开
      

  3.   

    var oSon = window.open("test1.htm","onlyone","width=200,height=200");
    //记录子窗口oSon.window.location = "test2.htm";
    //在同一个子窗口打开另一个页面
      

  4.   

    我的打开操作是一个javascript函数实现的。
    function openwin4scroll(url,winName,,width,height) {
    xposition=0; yposition=0;
    if ((parseInt(navigator.appVersion) >= 4 )) {
    xposition = (screen.width - width) / 2;
    yposition = (screen.height - height) / 2;
    }
    theproperty= "width=" + width + "," 
    + "height=" + height + "," 
    + "location=0," 
    + "menubar=0,"
    + "resizable=0,"
    + "scrollbars=1,"
    + "status=0," 
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + "," //仅适用于Netscape
    + "screeny=" + yposition + "," //仅适用于Netscape
    + "left=" + xposition + "," //IE
    + "top=" + yposition; //IE 
    //window.open( url,winName,theproperty );
    newwin=window.open('','',theproperty );
    newwin.location.href =url;

    return false;
    }
    这个需要如何修改???
      

  5.   

    我怎么用函数openwin4scroll就不能实现只打开一个子窗口呢?
      

  6.   

    function openwin4scroll(url,winName,,width,height) {
    xposition=0; yposition=0;
    if ((parseInt(navigator.appVersion) >= 4 )) {
    xposition = (screen.width - width) / 2;
    yposition = (screen.height - height) / 2;
    }
    theproperty= "width=" + width + "," 
    + "height=" + height + "," 
    + "location=0," 
    + "menubar=0,"
    + "resizable=0,"
    + "scrollbars=1,"
    + "status=0," 
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + "," //仅适用于Netscape
    + "screeny=" + yposition + "," //仅适用于Netscape
    + "left=" + xposition + "," //IE
    + "top=" + yposition; //IE 
    //window.open( url,winName,theproperty );
    newwin=window.open('','winName',theproperty );
                                    ~~~~~~`~
    newwin.location.href =url;

    return false;
    }