xx=null
function op(x)
{
if(xx) {xx.location=x;xx.focus();xx.moveTo(200,200)}
else
{
xx=window.open(x)
}
}<a href=xxxxxx onclick="op(this.href);return false"

解决方案 »

  1.   

    我的代码:<a href='javascript:JAdd(3000)'>增加子类别</a>
    <a href='javascript:JAdd(4000)'">增加子类别</a>
    <a href='javascript:JAdd(5000)'">增加子类别</a>
    <a href='javascript:JAdd(6000)'">增加子类别</a>
    <script language="JavaScript">
       handle=null;
       function JAdd(parent){
       if(handle){
             handle.focus();handle.moveTo(200,200)}
        else{handle=window.open("addFunc.jspparent="+parent,"", "width=600,height=480,scrollbars=0,resizable=0")}
    }
    </script>
      

  2.   

    补充:上边jsp和parent中间加个问号