window.oper 代表当前窗口的父窗口:
A窗口打开B,那么B.oper就是A窗口,需要刷新时,就判断oper是否null,非null就可调用window.oper.location.reload

解决方案 »

  1.   

    点击的时候打开新窗口,是否同时提交表单?即,是否将本页的表单提交到新窗口中?如果是,没法子。
    否则:onclick="window.open('','','')"
    然后子窗口中就可以if(opener!=null)opener.location.reload()to shanhe(TNT) 
    window.opener,not window.oper
      

  2.   

    为什么我用
    function foo() {
        open('http://211.68.39.218/message/speak1.asp',null,'location=no,height=320,width=610,top=100,left=100');}<input name="open" type="button" value="open" onclick="foo">
    可以打开用
    <input name="open" type="button" value="open" onclick="window.open('speak1.asp',null,'location=no,height=320,width=620,top=100,left=100')">
    就不行,用
    <a href="#" onclick="open('http://211.68.39.218/message/speak1.asp')">open</a>
    可以打开一个新页

    <a href="#" onclick="open('http://211.68.39.218/message/speak1.asp','null)">open</a>
    又不行,
    我都要疯了