function showwin(myurl){
window.open(myurl,'newtxt','toolbar=no,location=no,status=no,menubar=no,top=50,left=50,width=700,height=600,scrollbars=yes,resizable=yes,center:yes');
}<a href=javascript:showwin('b.htm');>

解决方案 »

  1.   

    可以:
    <script>
    var myWin=null;
    function show(uid)
    {
      if(myWin==null)
        myWin=window.open('b.htm','_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,revisable=yes,left=100,top=20,width=710,height=600');
      else
        window.open('b.htm',myWin,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,revisable=yes,left=100,top=20,width=710,height=600');}
    </script>
      

  2.   

    function showwin(myurl){
        window.open(myurl,'newtxt','toolbar=no,location=no,status=no,menubar=no,top=50,left=50,width=700,height=600,scrollbars=yes,resizable=yes,center:yes');
    }<a href="javascript:void(0)" onClick="showwin('b.htm')">AAA</a>
    <a href="javascript:void(0)" onClick="showwin('b.htm')">BBB</a>我试过可以的。
      

  3.   

    window.open('b.htm','newWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,revisable=yes,left=100,top=20,width=710,height=600');
    }
      

  4.   

    给弹出的窗口起个名字
    比如aa
    window.open('a.jsp','aa','width....')
    这样就只会有一个了