<a href="aaa.php?id=xxxx" target="_openedWinName">open</a>

解决方案 »

  1.   

    <script>
    function a(x)
    {
    w = window.open("xxx.php?newvalue=" + x,"openedWinName")
    w.focus()
    }
    </script>
    <a href="#" onclick="a('haha');return false">aaa</a>
      

  2.   

    _openedWinName应该是目标窗口的名字,怎么设置?
      

  3.   

    <script>
    window.open("xxx.php","openedWinName");function a(x)
    {
    w = window.open("xxx.php?newvalue=" + x,"openedWinName")
    w.focus()
    }
    </script>
    <a href="#" onclick="a('haha');return false">aaa</a>
    使用指定名字的窗口,可以把文件在其中打开。
    楼上孟老:不好意思,引用了您的部分大作。